Splaspage: Add highlights. Fix cfp inclusion.
This commit is contained in:
parent
e9456be31a
commit
ed8a71e554
13 changed files with 61 additions and 24 deletions
|
|
@ -562,6 +562,14 @@ class Conference < ActiveRecord::Base
|
|||
User.with_role(:keynote_speaker, self)
|
||||
end
|
||||
|
||||
##
|
||||
#
|
||||
# ====Returns
|
||||
# * +Array+ -> Events with attribute 'is_highlight'
|
||||
def highlights
|
||||
events.where(is_highlight: true)
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
after_create do
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue