Exception: ActivePostgrest::RecordNotSaved
- Inherits:
-
StandardError
- Object
- StandardError
- ActivePostgrest::RecordNotSaved
- Defined in:
- lib/active_postgrest/errors.rb
Instance Method Summary collapse
-
#initialize(model, attrs) ⇒ RecordNotSaved
constructor
A new instance of RecordNotSaved.
Constructor Details
#initialize(model, attrs) ⇒ RecordNotSaved
Returns a new instance of RecordNotSaved.
40 41 42 |
# File 'lib/active_postgrest/errors.rb', line 40 def initialize(model, attrs) super("#{model.name} could not be saved: #{attrs.inspect}") end |