Exception: User::PermissionsNotConfigured

Inherits:
StandardError
  • Object
show all
Defined in:
app/models/user.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(controller, action) ⇒ PermissionsNotConfigured

Returns a new instance of PermissionsNotConfigured.



42
43
44
# File 'app/models/user.rb', line 42

def initialize(controller,action)
  @message = "Permissions not yet configured for #{controller}/#{action}"
end

Instance Attribute Details

#messageObject (readonly)

Returns the value of attribute message.



41
42
43
# File 'app/models/user.rb', line 41

def message
  @message
end