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

Version Path
enju_library-0.3.3 app/models/bookstore.rb
enju_library-0.3.2 app/models/bookstore.rb
enju_library-0.3.1 app/models/bookstore.rb
enju_library-0.3.0 app/models/bookstore.rb
enju_library-0.3.0.rc.1 app/models/bookstore.rb
enju_library-0.3.0.beta.2 app/models/bookstore.rb
enju_library-0.2.5 app/models/bookstore.rb
enju_library-0.2.4 app/models/bookstore.rb
enju_library-0.2.3 app/models/bookstore.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/enju_library-0.2.2/app/models/bookstore.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/enju_library-0.2.1/app/models/bookstore.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/bundler/gems/enju_library-d36f415e177e/app/models/bookstore.rb
enju_library-0.2.2 app/models/bookstore.rb
enju_library-0.2.1 app/models/bookstore.rb
enju_library-0.2.0 app/models/bookstore.rb
enju_library-0.2.0.beta.10 app/models/bookstore.rb
enju_library-0.2.0.beta.9 app/models/bookstore.rb
enju_library-0.2.0.beta.8 app/models/bookstore.rb
enju_library-0.2.0.beta.7 app/models/bookstore.rb
enju_library-0.2.0.beta.6 app/models/bookstore.rb