linting error is fixed

This commit is contained in:
Naman Gupta 2017-11-09 02:00:49 +05:30
parent 90edc648f8
commit ada0f814a7

View file

@ -42,7 +42,7 @@ class Program < ActiveRecord::Base
has_many :event_schedules, through: :events
has_many :event_users, through: :events
has_many :program_events_speakers, -> {where(event_role: 'speaker')},through: :events, source: :event_users
has_many :program_events_speakers, -> {where(event_role: 'speaker')}, through: :events, source: :event_users
has_many :speakers, -> { distinct }, through: :program_events_speakers, source: :user do
def confirmed
joins(:events).where(events: { state: :confirmed })