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, #available_store_credit_total, #can_be_deleted?, #display_available_store_credit_total, #has_spree_role?, #last_incomplete_spree_order, #update_spree_roles, #wallet

Methods included from UserAddressBook

#bill_address=, #bill_address_attributes=, #mark_default_bill_address, #mark_default_ship_address, #persist_order_address, #remove_from_address_book, #save_in_address_book, #ship_address=, #ship_address_attributes=

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

Methods included from Core::Permalinks

#generate_permalink, #save_permalink

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