Class: Spree::User
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Spree::User
- Includes:
- Core::UserBanners
- Defined in:
- app/models/spree/user.rb
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
Methods included from Core::UserBanners
#dismiss_banner, #dismissed_banner?, #dismissed_banner_ids, included
Instance Attribute Details
#password ⇒ Object
Returns the value of attribute password.
22 23 24 |
# File 'app/models/spree/user.rb', line 22 def password @password end |
#password_confirmation ⇒ Object
Returns the value of attribute password_confirmation.
23 24 25 |
# File 'app/models/spree/user.rb', line 23 def password_confirmation @password_confirmation end |
Class Method Details
.anonymous! ⇒ Object
Creates an anonymous user
18 19 20 |
# File 'app/models/spree/user.rb', line 18 def self.anonymous! create end |
Instance Method Details
#anonymous? ⇒ Boolean
13 14 15 |
# File 'app/models/spree/user.rb', line 13 def anonymous? false end |