Class: Spree::LegacyUser
- Includes:
- UserMethods
- Defined in:
- app/models/spree/legacy_user.rb
Overview
Note:
This class is intended to be modified by extensions (ex. spree_auth_devise)
Default implementation of User.
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
-
.model_name ⇒ Object
for url generation.
Methods included from UserMethods
#has_spree_role?, #last_incomplete_spree_order, #total_available_store_credit
Methods included from UserReporting
#average_order_value, #lifetime_value, #order_count
Methods included from DisplayMoney
Methods included from UserApiAuthentication
#clear_spree_api_key!, #generate_spree_api_key!
Methods inherited from Base
Methods included from Preferences::Preferable
#default_preferences, #defined_preferences, #get_preference, #has_preference!, #has_preference?, #preference_default, #preference_type, #set_preference
Instance Attribute Details
#password ⇒ Object
Returns the value of attribute password.
22 23 24 |
# File 'app/models/spree/legacy_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/legacy_user.rb', line 23 def password_confirmation @password_confirmation end |
Class Method Details
.model_name ⇒ Object
for url generation
12 13 14 |
# File 'app/models/spree/legacy_user.rb', line 12 def self.model_name ActiveModel::Name.new(self, nil, "User") end |