Remove additional sentry logging for invalid objects

This commit is contained in:
Sebastian Serth
2020-11-27 16:29:53 +01:00
parent 85ae63e318
commit 20741835b5

View File

@ -27,11 +27,6 @@ module CommonBehavior
def respond_with_invalid_object(format, options = {})
format.html { render(options[:template]) }
format.json { render(json: @object.errors, status: :unprocessable_entity) }
begin
@object.save!
rescue StandardError => e
Raven.capture_exception e
end
end
def respond_with_valid_object(format, options = {})