From 2dd326c8b94f60a7c793f09124b79883b3abbf8f Mon Sep 17 00:00:00 2001 From: Stella Rouzi Date: Thu, 11 Dec 2014 20:56:36 +0200 Subject: [PATCH] show only confirmed events as highlights --- app/models/conference.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/conference.rb b/app/models/conference.rb index 724c2499..7d4213ae 100644 --- a/app/models/conference.rb +++ b/app/models/conference.rb @@ -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