Sha256: 6a008a1906759cd293377387bf62aa2f0f957a6904ecbfaefda7ab533c57836d
Contents?: true
Size: 761 Bytes
Versions: 30
Compression:
Stored size: 761 Bytes
Contents
class Bookstore < ActiveRecord::Base 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 # address :text # note :text # telephone_number :string # fax_number :string # url :string # position :integer # deleted_at :datetime # created_at :datetime # updated_at :datetime #
Version data entries
30 entries across 28 versions & 2 rubygems