Sha256: a4611ef748abe50abcba8f236a0b18a56dc9d6a0eb3e48f62803e5e94cb759f6

Contents?: true

Size: 521 Bytes

Versions: 23

Compression:

Stored size: 521 Bytes

Contents

class Participate < ActiveRecord::Base
  belongs_to :patron
  belongs_to :event

  validates_presence_of :patron_id, :event_id
  validates_uniqueness_of :patron_id, :scope => :event_id
  acts_as_list :scope => :event_id

  def self.per_page
    10
  end
end

# == Schema Information
#
# Table name: participates
#
#  id         :integer         not null, primary key
#  patron_id  :integer         not null
#  event_id   :integer         not null
#  position   :integer
#  created_at :datetime
#  updated_at :datetime
#

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
enju_event-0.0.19 app/models/participate.rb
enju_event-0.1.6 app/models/participate.rb
enju_event-0.0.18 app/models/participate.rb
enju_event-0.0.17 app/models/participate.rb
enju_event-0.1.5 app/models/participate.rb
enju_event-0.0.16 app/models/participate.rb
enju_event-0.1.4 app/models/participate.rb
enju_event-0.1.3 app/models/participate.rb
enju_event-0.0.15 app/models/participate.rb
enju_event-0.0.14 app/models/participate.rb
enju_event-0.0.13 app/models/participate.rb
enju_event-0.0.12 app/models/participate.rb
enju_event-0.0.11 app/models/participate.rb
enju_event-0.1.2 app/models/participate.rb
enju_event-0.0.10 app/models/participate.rb
enju_event-0.1.1 app/models/participate.rb
enju_event-0.1.0 app/models/participate.rb
enju_event-0.0.9 app/models/participate.rb
enju_event-0.0.8 app/models/participate.rb
enju_event-0.0.7 app/models/participate.rb