Exception: ActivePostgrest::RecordNotFound

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

Instance Method Summary collapse

Constructor Details

#initialize(model, id) ⇒ RecordNotFound

Returns a new instance of RecordNotFound.



6
7
8
# File 'lib/active_postgrest/relation.rb', line 6

def initialize(model, id)
  super("#{model.name} not found: #{id.inspect}")
end