Class: User

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

Overview

Default implementation of User. This class is intended to be modified by extensions (ex. spree_auth)

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#passwordObject

Returns the value of attribute password.



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

def password
  @password
end

#password_confirmationObject

Returns the value of attribute password_confirmation.



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

def password_confirmation
  @password_confirmation
end

Class Method Details

.anonymous!Object

Creates an anonymous user



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

def self.anonymous!
  User.create
end

Instance Method Details

#anonymous?Boolean

Returns:

  • (Boolean)


9
10
11
# File 'app/models/user.rb', line 9

def anonymous?
  false
end