Class: Spree::LegacyUser

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/spree/legacy_user.rb

Defined Under Namespace

Classes: DestroyWithOrdersError

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#passwordObject

Returns the value of attribute password


26
27
28
# File 'app/models/spree/legacy_user.rb', line 26

def password
  @password
end

#password_confirmationObject

Returns the value of attribute password_confirmation


27
28
29
# File 'app/models/spree/legacy_user.rb', line 27

def password_confirmation
  @password_confirmation
end

Class Method Details

.anonymous!Object

Creates an anonymous user


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

def self.anonymous!
  create
end

Instance Method Details

#anonymous?Boolean


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

def anonymous?
  false
end

#has_spree_role?(role) ⇒ Boolean


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

def has_spree_role?(role)
  true
end