Class: Spree::LegacyUser

Inherits:
Base
  • Object
show all
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

Class Method Summary collapse

Methods included from UserMethods

#auto_generate_spree_api_key, #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

#money_methods

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

#passwordObject

Returns the value of attribute password



17
18
19
# File 'app/models/spree/legacy_user.rb', line 17

def password
  @password
end

#password_confirmationObject

Returns the value of attribute password_confirmation



18
19
20
# File 'app/models/spree/legacy_user.rb', line 18

def password_confirmation
  @password_confirmation
end

Class Method Details

.model_nameObject



13
14
15
# File 'app/models/spree/legacy_user.rb', line 13

def self.model_name
  ActiveModel::Name.new Spree::LegacyUser, Spree, 'user'
end