Class: ActiveRecord::RecordNotSaved

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

Overview

rubocop:todo Style/Documentation

Instance Method Summary collapse

Instance Method Details

#api_error(response) ⇒ Object


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

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