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

#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

#money_methods

Methods included from UserApiAuthentication

#clear_spree_api_key!, #generate_spree_api_key!

Methods inherited from Base

page

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.



22
23
24
# File 'app/models/spree/legacy_user.rb', line 22

def password
  @password
end

#password_confirmationObject

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_nameObject

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