2014-08-06 21:14:00 +03:00
|
|
|
module Admin
|
|
|
|
|
class SocialEventsController < ApplicationController
|
|
|
|
|
before_filter :verify_organizer
|
2013-02-16 13:30:53 +01:00
|
|
|
|
2014-08-06 21:14:00 +03:00
|
|
|
def show
|
|
|
|
|
render :social_events_list
|
|
|
|
|
end
|
2013-02-16 13:30:53 +01:00
|
|
|
|
2014-08-06 21:14:00 +03:00
|
|
|
def update
|
|
|
|
|
if @conference.update_attributes(params[:conference])
|
|
|
|
|
redirect_to(admin_conference_social_events_path(conference_id: @conference.short_title), notice: 'Social events were successfully updated.')
|
|
|
|
|
else
|
|
|
|
|
redirect_to(admin_conference_social_events_path(conference_id: @conference.short_title), notice: 'Social events update failed.')
|
|
|
|
|
end
|
2013-02-16 13:30:53 +01:00
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
end
|