Sha256: 0bbf8d09808ef794aeba559fe3af4f45bb60b6263eeacd894eb7c51efdf0b50e

Contents?: true

Size: 680 Bytes

Versions: 27

Compression:

Stored size: 680 Bytes

Contents

class ReserveStatHasUser < ActiveRecord::Base
  attr_accessible
  attr_accessible :user_reserve_stat_id, :user_id,
    :as => :admin
  belongs_to :user_reserve_stat
  belongs_to :user

  validates_uniqueness_of :user_id, :scope => :user_reserve_stat_id
  validates_presence_of :user_reserve_stat_id, :user_id

  def self.per_page
    10
  end
end

# == Schema Information
#
# Table name: reserve_stat_has_users
#
#  id                   :integer         not null, primary key
#  user_reserve_stat_id :integer         not null
#  user_id              :integer         not null
#  reserves_count       :integer
#  created_at           :datetime
#  updated_at           :datetime
#

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
enju_circulation-0.0.71 app/models/reserve_stat_has_user.rb
enju_circulation-0.0.70 app/models/reserve_stat_has_user.rb
enju_circulation-0.0.69 app/models/reserve_stat_has_user.rb
enju_circulation-0.0.68 app/models/reserve_stat_has_user.rb
enju_circulation-0.0.67 app/models/reserve_stat_has_user.rb
enju_circulation-0.0.66 app/models/reserve_stat_has_user.rb
enju_circulation-0.0.65 app/models/reserve_stat_has_user.rb
enju_circulation-0.0.64 app/models/reserve_stat_has_user.rb
enju_circulation-0.0.63 app/models/reserve_stat_has_user.rb
enju_circulation-0.0.62 app/models/reserve_stat_has_user.rb
enju_circulation-0.0.61 app/models/reserve_stat_has_user.rb
enju_circulation-0.0.60 app/models/reserve_stat_has_user.rb
enju_circulation-0.0.59 app/models/reserve_stat_has_user.rb
enju_circulation-0.0.58 app/models/reserve_stat_has_user.rb
enju_circulation-0.0.57 app/models/reserve_stat_has_user.rb
enju_circulation-0.0.56 app/models/reserve_stat_has_user.rb
enju_circulation-0.0.55 app/models/reserve_stat_has_user.rb
enju_circulation-0.0.54 app/models/reserve_stat_has_user.rb
enju_circulation-0.0.53 app/models/reserve_stat_has_user.rb
enju_circulation-0.0.52 app/models/reserve_stat_has_user.rb