Exception: User::AlreadyActivated

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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, message=nil)
  @message, @user = message, user
end

Instance Attribute Details

#messageObject (readonly)

Returns the value of attribute message.



49
50
51
# File 'app/models/user.rb', line 49

def message
  @message
end

#userObject (readonly)

Returns the value of attribute user.



49
50
51
# File 'app/models/user.rb', line 49

def user
  @user
end