show only confirmed events as highlights
This commit is contained in:
parent
11d0a71231
commit
2dd326c8b9
1 changed files with 1 additions and 1 deletions
|
|
@ -45,7 +45,7 @@ class Conference < ActiveRecord::Base
|
||||||
end
|
end
|
||||||
|
|
||||||
def highlights
|
def highlights
|
||||||
where(is_highlight: true)
|
where(state: :confirmed, is_highlight: true)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
has_many :event_users, through: :events
|
has_many :event_users, through: :events
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue