Exception: Avo::ResourceNotFoundError

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

Instance Method Summary collapse

Constructor Details

#initialize(resource_name) ⇒ ResourceNotFoundError

Returns a new instance of ResourceNotFoundError.



59
60
61
62
63
64
# File 'lib/avo.rb', line 59

def initialize(resource_name)
  super(
    "Resource for '#{resource_name}' not found.\n" \
    "You can generate a resource for it by running 'rails generate avo:resource #{resource_name}'."
  )
end