Module: Participant::Associations
- Defined in:
- app/models/participant.rb
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
18 19 20 21 22 23 |
# File 'app/models/participant.rb', line 18 def self.included(base) base.instance_eval do has_many :attendees, {:as => :participant, :dependent => :destroy} has_many :events, {:through => :attendees} end end |