Exception: User::AlreadyActivated
- Inherits:
-
StandardError
- Object
- StandardError
- User::AlreadyActivated
- Defined in:
- app/models/user.rb
Instance Attribute Summary collapse
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#user ⇒ Object
readonly
Returns the value of attribute user.
Instance Method Summary collapse
-
#initialize(user, message = nil) ⇒ AlreadyActivated
constructor
A new instance of AlreadyActivated.
Constructor Details
#initialize(user, message = nil) ⇒ AlreadyActivated
Returns a new instance of AlreadyActivated.
50 51 52 |
# File 'app/models/user.rb', line 50 def initialize(user, =nil) @message, @user = , user end |
Instance Attribute Details
#message ⇒ Object (readonly)
Returns the value of attribute message.
49 50 51 |
# File 'app/models/user.rb', line 49 def @message end |
#user ⇒ Object (readonly)
Returns the value of attribute user.
49 50 51 |
# File 'app/models/user.rb', line 49 def user @user end |