Class: ActiveRecord::RecordNotSaved

Inherits:
Object
  • Object
show all
Defined in:
app/api/core/service/error_handling.rb

Instance Method Summary collapse

Instance Method Details

#api_error(response) ⇒ Object


89
90
91
# File 'app/api/core/service/error_handling.rb', line 89

def api_error(response)
  response.content_error(422, message)
end