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

Version Path
enju_purchase_request-0.1.0.pre7 spec/dummy/app/models/bookstore.rb
enju_purchase_request-0.1.0.pre6 spec/dummy/app/models/bookstore.rb
enju_purchase_request-0.1.0.pre5 spec/dummy/app/models/bookstore.rb
enju_purchase_request-0.1.0.pre4 spec/dummy/app/models/bookstore.rb
enju_purchase_request-0.1.0.pre3 spec/dummy/app/models/bookstore.rb
enju_purchase_request-0.1.0.pre2 spec/dummy/app/models/bookstore.rb
enju_purchase_request-0.1.0.pre spec/dummy/app/models/bookstore.rb
enju_purchase_request-0.0.14 spec/dummy/app/models/bookstore.rb
enju_purchase_request-0.0.13 spec/dummy/app/models/bookstore.rb
enju_purchase_request-0.0.12 spec/dummy/app/models/bookstore.rb
enju_bookmark-0.0.19 spec/dummy/app/models/bookstore.rb
enju_bookmark-0.0.18 spec/dummy/app/models/bookstore.rb
enju_purchase_request-0.0.10 spec/dummy/app/models/bookstore.rb
enju_purchase_request-0.0.9 spec/dummy/app/models/bookstore.rb
enju_bookmark-0.0.17 spec/dummy/app/models/bookstore.rb
enju_bookmark-0.0.16 spec/dummy/app/models/bookstore.rb
enju_bookmark-0.0.15 spec/dummy/app/models/bookstore.rb
enju_bookmark-0.0.14 spec/dummy/app/models/bookstore.rb
enju_bookmark-0.0.13 spec/dummy/app/models/bookstore.rb
enju_bookmark-0.0.12 spec/dummy/app/models/bookstore.rb