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

Version Path
enju_library-0.1.0.pre33 app/models/bookstore.rb
enju_library-0.1.0.pre32 app/models/bookstore.rb
enju_library-0.1.0.pre31 app/models/bookstore.rb
enju_library-0.1.0.pre30 app/models/bookstore.rb
enju_library-0.1.0.pre29 app/models/bookstore.rb
enju_library-0.1.0.pre28 app/models/bookstore.rb
enju_library-0.1.0.pre27 app/models/bookstore.rb
enju_library-0.1.0.pre26 app/models/bookstore.rb
enju_library-0.1.0.pre25 app/models/bookstore.rb
enju_library-0.1.0.pre24 app/models/bookstore.rb
enju_library-0.1.0.pre23 app/models/bookstore.rb
enju_library-0.1.0.pre22 app/models/bookstore.rb
enju_library-0.1.0.pre21 app/models/bookstore.rb
enju_library-0.1.0.pre20 app/models/bookstore.rb
enju_library-0.1.0.pre19 app/models/bookstore.rb
enju_library-0.1.0.pre18 app/models/bookstore.rb
enju_library-0.1.0.pre17 app/models/bookstore.rb
enju_library-0.1.0.pre16 app/models/bookstore.rb
enju_library-0.1.0.pre15 app/models/bookstore.rb
enju_library-0.1.0.pre14 app/models/bookstore.rb