added user_propsals to show all talks irrespective of conference

closes #1810
This commit is contained in:
ViditChitkara 2017-12-20 23:02:18 +05:30
parent 8442eb813f
commit 0fdef06ebf
6 changed files with 112 additions and 0 deletions

View file

@ -18,6 +18,11 @@ class ConferencesController < ApplicationController
@program = @conference.program
end
def user_proposals
event_types = EventType.where(title: 'Talk').collect(&:id)
@events = Event.includes(program: :conference).where(event_type_id: event_types).order(created_at: :desc)
end
private
def load_conference_by_domain