Velocipede's User, Sales, and Bike Inventory Web App
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
660 B

12 years ago
class Customer < ActiveRecord::Base
attr_accessible :first_name, :last_name, :addrStreet1,
:addrStreet2, :addrCity, :addrState, :addrZip, :phone, :email
has_many :transactions, :as => :customer
validates :first_name, :presence => true
validates :last_name, :presence => true
#validates :addrStreet1, :presence => true
#validates :addrStreet2, :presence => true
#validates :addrCity, :presence => true
#validates :addrState, :presence => true
#validates :addrZip, :presence => true
#validates :phone, :presence => true
#validates :email, :presence => true
12 years ago
self.per_page = 15
12 years ago
def to_s
"#{first_name} #{last_name}"
end
end