show only confirmed events as highlights

This commit is contained in:
Stella Rouzi 2014-12-11 20:56:36 +02:00 committed by Stella
parent 11d0a71231
commit 2dd326c8b9

View file

@ -45,7 +45,7 @@ class Conference < ActiveRecord::Base
end
def highlights
where(is_highlight: true)
where(state: :confirmed, is_highlight: true)
end
end
has_many :event_users, through: :events