Sha256: e2c71059ca875d9e0f9b27bbaea0416d0e3b4562b0b710ca13b56e5410721129

Contents?: true

Size: 532 Bytes

Versions: 29

Compression:

Stored size: 532 Bytes

Contents

# Default implementation of User.  This class is intended to be modified by extensions (ex. spree_auth)
class User < ActiveRecord::Base

  has_many :orders
  belongs_to :ship_address, :foreign_key => "ship_address_id", :class_name => "Address"
  belongs_to :bill_address, :foreign_key => "bill_address_id", :class_name => "Address"
  scope :registered

  def anonymous?
    false
  end

  # Creates an anonymous user
  def self.anonymous!
    User.create
  end

  attr_accessor :password
  attr_accessor :password_confirmation

end

Version data entries

29 entries across 29 versions & 6 rubygems

Version Path
spree_core-0.70.7 app/models/user.rb
spree_core-0.70.6 app/models/user.rb
apispree_core-0.0.0 app/models/user.rb
My-Commerce_core-1.1.0 app/models/user.rb
My-Commerce_core-1.0.0 app/models/user.rb
MyCommerceapi-1.0.0 core/app/models/user.rb
MyCommerce-0.0.3 core/app/models/user.rb
rfcommerce_core-0.0.3 app/models/user.rb
spree_core-0.60.6 app/models/user.rb
spree_core-0.70.5 app/models/user.rb
spree_core-0.70.4 app/models/user.rb
spree_core-0.60.5 app/models/user.rb
spree_core-0.70.3 app/models/user.rb
spree_core-0.70.2 app/models/user.rb
spree_core-0.50.4 app/models/user.rb
spree_core-0.60.4 app/models/user.rb
spree_core-0.50.3 app/models/user.rb
spree_core-0.60.3 app/models/user.rb
spree_core-0.70.1 app/models/user.rb
spree_core-0.70.0 app/models/user.rb