clarion/app/controllers/management/call_for_participations_controller.rb
Petko Bordjukov 2b64461ac9 Implement changing of the status of the CFP
Allow a user to start and end a call for participation from the
conference list.
2015-05-24 01:17:42 +03:00

22 lines
421 B
Ruby

module Management
class CallForParticipationsController < ManagementController
before_action :assign_conference
def create
@conference.call_for_participation.open!
render :redraw
end
def destroy
@conference.call_for_participation.close!
render :redraw
end
private
def assign_conference
@conference = Conference.find params[:conference_id]
end
end
end