Exception: Served::Resource::ResourceInvalid

Inherits:
Error show all
Defined in:
lib/served/resource/resource_invalid.rb

Instance Method Summary collapse

Constructor Details

#initialize(resource) ⇒ ResourceInvalid

Returns a new instance of ResourceInvalid.



4
5
6
# File 'lib/served/resource/resource_invalid.rb', line 4

def initialize(resource)
  super "[#{resource.errors.full_messages.join(', ')}]"
end