Exception: SimpleAdmin::ActionNotAllowed

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(action) ⇒ ActionNotAllowed

Returns a new instance of ActionNotAllowed.



118
119
120
# File 'lib/simple_admin.rb', line 118

def initialize(action)
  @message = "SimpleAdmin #{action} action undefined, make sure you have allowed this action in your interface definition."
end

Instance Attribute Details

#messageObject

Returns the value of attribute message.



116
117
118
# File 'lib/simple_admin.rb', line 116

def message
  @message
end