Sha256: 472598233acc7de07ade18b08a85a48b81d9ec690d09b67c10f1c3bf76141ce9
Contents?: true
Size: 724 Bytes
Versions: 35
Compression:
Stored size: 724 Bytes
Contents
class Bookstore < ActiveRecord::Base default_scope :order => "position" has_many :items acts_as_list validates_presence_of :name validates :url, :url => true, :allow_blank => true, :length => {:maximum => 255} def self.per_page 10 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 # updated_at :datetime #
Version data entries
35 entries across 35 versions & 2 rubygems