Class: Spree::LegacyUser

Inherits:
Base
  • Object
show all
Includes:
UserAddress, UserPaymentSource
Defined in:
app/models/spree/legacy_user.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Base

page

Methods included from Preferences::Preferable

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

Instance Method Details

#has_spree_role?(role) ⇒ Boolean

Returns:

  • (Boolean)

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

def has_spree_role?(role)
  true
end