Sha256: 28d259899e8be4b6fb6f14bbac924ec575a2561cb7437bc7e552409bdf0eebdf

Contents?: true

Size: 612 Bytes

Versions: 6

Compression:

Stored size: 612 Bytes

Contents

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

    attr_accessible :email, :password, :password_confirmation

    has_many :orders

    belongs_to :ship_address, :class_name => 'Spree::Address'
    belongs_to :bill_address, :class_name => 'Spree::Address'

    scope :registered

    def anonymous?
      false
    end

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

    attr_accessor :password
    attr_accessor :password_confirmation
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
spree_core-1.1.6 app/models/spree/user.rb
spree_core-1.1.5 app/models/spree/user.rb
spree_core-1.1.4 app/models/spree/user.rb
spree_core-1.1.3 app/models/spree/user.rb
spree_core-1.1.2 app/models/spree/user.rb
spree_core-1.1.2.rc1 app/models/spree/user.rb