Class: Spree::User

Inherits:
ActiveRecord::Base
  • Object
show all
Includes:
Core::UserBanners
Defined in:
app/models/spree/user.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Core::UserBanners

#dismiss_banner, #dismissed_banner?, #dismissed_banner_ids, included

Instance Attribute Details

#passwordObject

Returns the value of attribute password.



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

def password
  @password
end

#password_confirmationObject

Returns the value of attribute password_confirmation.



23
24
25
# File 'app/models/spree/user.rb', line 23

def password_confirmation
  @password_confirmation
end

Class Method Details

.anonymous!Object

Creates an anonymous user



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

def self.anonymous!
  create
end

Instance Method Details

#anonymous?Boolean

Returns:

  • (Boolean)


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

def anonymous?
  false
end