Speaker is displayed instead of submitter un public pages

This commit is contained in:
Ancor Gonzalez Sosa 2013-07-10 16:55:27 +02:00
parent 3a2bf49f97
commit cb76a9b7cc
4 changed files with 12 additions and 9 deletions

View file

@ -8,6 +8,7 @@ class Event < ActiveRecord::Base
has_many :event_people, :dependent => :destroy
has_many :event_attachments, :dependent => :destroy
has_many :people, :through => :event_people
has_many :speakers, :through => :event_people, :source => :person, :conditions => {"event_people.event_role" => "speaker"}
belongs_to :event_type
belongs_to :track