Class: User

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

Instance Method Summary collapse

Instance Method Details

#confirmed?Boolean

This is a magic method that Authlogic uses to determine if the user is confirmed and should be able to log in.

Returns:

  • (Boolean)


9
10
11
# File 'app/models/user.rb', line 9

def confirmed?
  !!confirmed_at
end