Sha256: c8343bc119d1b4eb0318c4c23f5211a912955804878bfd4b50e1fce3a5fdbd25
Contents?: true
Size: 907 Bytes
Versions: 3
Compression:
Stored size: 907 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
enju_library-0.1.0.pre36 | app/models/bookstore.rb |
enju_library-0.1.0.pre35 | app/models/bookstore.rb |
enju_library-0.1.0.pre34 | app/models/bookstore.rb |