Moved withdrawn_event check to helper

Signed-off-by: Carlos Coelho <carlos@pencillabs.com>
This commit is contained in:
Carlos Coelho 2016-03-14 17:47:47 -03:00
parent e268acec23
commit 6beb9f68ab
3 changed files with 13 additions and 5 deletions

View file

@ -160,9 +160,6 @@ module Admin
# get campaigns
@campaigns = @conference.get_campaigns
# get withdrawn events
@withdrawn_events = @conference.program.events.where(state: :withdrawn)
respond_to do |format|
format.html
format.json { render json: @conference.to_json }