Sha256: f5c0bedab51e8f11f982c6274663a42a67ef219efda5c6a06812ec994cbd9c58
Contents?: true
Size: 919 Bytes
Versions: 28
Compression:
Stored size: 919 Bytes
Contents
class Bookstore < ActiveRecord::Base attr_accessible :name, :zip_code, :address, :note, :telephone_number, :fax_number, :url default_scope :order => "bookstores.position" has_many :items acts_as_list validates_presence_of :name validates :url, :url => true, :allow_blank => true, :length => {:maximum => 255} paginates_per 10 if defined?(EnjuPurchaseRequest) has_many :order_lists end end # == Schema Information # # Table name: bookstores # # id :integer not null, primary key # name :text not null # zip_code :string(255) # address :text # note :text # telephone_number :string(255) # fax_number :string(255) # url :string(255) # position :integer # deleted_at :datetime # created_at :datetime not null # updated_at :datetime not null #
Version data entries
28 entries across 28 versions & 1 rubygems