Sha256: 5434fd6eb302aa61030c616fb63005fe95d1254b29bc2bbff03b04fa0c735576

Contents?: true

Size: 809 Bytes

Versions: 6

Compression:

Stored size: 809 Bytes

Contents

class CheckoutStatHasManifestation < ActiveRecord::Base
  # attr_accessible :manifestation_checkout_stat_id, :manifestation_id,
  #  as: :admin
  belongs_to :manifestation_checkout_stat
  belongs_to :manifestation

  validates :manifestation_id, uniqueness: { scope: :manifestation_checkout_stat_id }
  validates :manifestation_checkout_stat_id, :manifestation_id, presence: true

  paginates_per 10
end

# == Schema Information
#
# Table name: checkout_stat_has_manifestations
#
#  id                             :integer          not null, primary key
#  manifestation_checkout_stat_id :integer          not null
#  manifestation_id               :integer          not null
#  checkouts_count                :integer
#  created_at                     :datetime
#  updated_at                     :datetime
#

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
enju_circulation-0.3.3 app/models/checkout_stat_has_manifestation.rb
enju_circulation-0.3.2 app/models/checkout_stat_has_manifestation.rb
enju_circulation-0.3.1 app/models/checkout_stat_has_manifestation.rb
enju_circulation-0.3.0 app/models/checkout_stat_has_manifestation.rb
enju_circulation-0.3.0.rc.1 app/models/checkout_stat_has_manifestation.rb
enju_circulation-0.3.0.beta.1 app/models/checkout_stat_has_manifestation.rb