Exception: ActivePostgrest::RecordNotSaved

Inherits:
StandardError
  • Object
show all
Defined in:
lib/active_postgrest/errors.rb

Instance Method Summary collapse

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