clarion/app/controllers/management/call_for_participations_controller.rb

22 lines
421 B
Ruby
Raw Normal View History

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