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