Speaker is displayed instead of submitter un public pages
This commit is contained in:
parent
3a2bf49f97
commit
cb76a9b7cc
4 changed files with 12 additions and 9 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue