Class: User
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- User
- Defined in:
- app/models/user.rb
Overview
Default implementation of User. This class is intended to be modified by extensions (ex. spree_auth)
Instance Attribute Summary collapse
-
#password ⇒ Object
Returns the value of attribute password.
-
#password_confirmation ⇒ Object
Returns the value of attribute password_confirmation.
Class Method Summary collapse
-
.anonymous! ⇒ Object
Creates an anonymous user.
Instance Method Summary collapse
Instance Attribute Details
#password ⇒ Object
Returns the value of attribute password.
18 19 20 |
# File 'app/models/user.rb', line 18 def password @password end |
#password_confirmation ⇒ Object
Returns the value of attribute password_confirmation.
19 20 21 |
# File 'app/models/user.rb', line 19 def password_confirmation @password_confirmation end |
Class Method Details
.anonymous! ⇒ Object
Creates an anonymous user
14 15 16 |
# File 'app/models/user.rb', line 14 def self.anonymous! User.create end |
Instance Method Details
#anonymous? ⇒ Boolean
9 10 11 |
# File 'app/models/user.rb', line 9 def anonymous? false end |