Fix error handling

This commit is contained in:
aignatov-bio 2020-05-07 13:58:25 +02:00
parent 29903f570d
commit c3ca0156fb

View file

@ -35,7 +35,7 @@ module RepositoryRows
unassign_repository_rows_from_my_module(@my_module)
assign_repository_rows_to_my_module(@my_module)
end
rescue StandardError => e
rescue ActiveRecord::RecordInvalid => e
@errors[e.record.class.name.underscore] = e.record.errors.full_messages
raise ActiveRecord::Rollback
end