Remove additional sentry logging for invalid objects
This commit is contained in:
@ -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 = {})
|
||||
|
Reference in New Issue
Block a user