Class: Spree::LegacyUser
- Includes:
- UserMethods
- Defined in:
- app/models/spree/legacy_user.rb
Overview
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
Methods included from UserMethods
#auto_generate_spree_api_key, #available_store_credit_total, #display_available_store_credit_total, #has_spree_role?, #last_incomplete_spree_order, #total_available_store_credit, #wallet
Methods included from UserPaymentSource
#default_credit_card, #payment_sources
Methods included from UserAddressBook
#bill_address=, #bill_address_attributes=, #default_address=, #default_address_attributes=, #mark_default_address, #persist_order_address, #remove_from_address_book, #save_in_address_book, #ship_address=
Methods included from UserReporting
#average_order_value, #lifetime_value, #order_count
Methods included from DisplayMoney
Methods included from UserApiAuthentication
#clear_spree_api_key, #clear_spree_api_key!, #generate_spree_api_key, #generate_spree_api_key!
Methods inherited from Base
display_includes, #initialize_preference_defaults, page, preference
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.
15 16 17 |
# File 'app/models/spree/legacy_user.rb', line 15 def password @password end |
#password_confirmation ⇒ Object
Returns the value of attribute password_confirmation.
16 17 18 |
# File 'app/models/spree/legacy_user.rb', line 16 def password_confirmation @password_confirmation end |
Class Method Details
.model_name ⇒ Object
11 12 13 |
# File 'app/models/spree/legacy_user.rb', line 11 def self.model_name ActiveModel::Name.new Spree::LegacyUser, Spree, 'user' end |