Sha256: 5bc023d804c7c0037aeadab3755fa3763440e24daf5c6f9baaf4913cd2186e1c

Contents?: true

Size: 600 Bytes

Versions: 4

Compression:

Stored size: 600 Bytes

Contents

class PatronMerge < ActiveRecord::Base
  attr_accessible :patron_id, :patron_merge_list_id
  belongs_to :patron, :validate => true
  belongs_to :patron_merge_list, :validate => true
  validates_presence_of :patron, :patron_merge_list
  validates_associated :patron, :patron_merge_list

  paginates_per 10
end

# == Schema Information
#
# Table name: patron_merges
#
#  id                   :integer         not null, primary key
#  patron_id            :integer         not null
#  patron_merge_list_id :integer         not null
#  created_at           :datetime
#  updated_at           :datetime
#

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
enju_resource_merge-0.1.0.pre4 app/models/patron_merge.rb
enju_resource_merge-0.1.0.pre3 app/models/patron_merge.rb
enju_resource_merge-0.1.0.pre2 app/models/patron_merge.rb
enju_resource_merge-0.1.0.pre app/models/patron_merge.rb