clarion/app/controllers/management/call_for_participations_controller.rb
2019-04-28 02:12:54 +03:00

14 lines
394 B
Ruby

module Management
class CallForParticipationsController < ManagementController
def create
current_conference.call_for_participation.open!
redirect_back fallback_location: [:management, current_conference]
end
def destroy
current_conference.call_for_participation.close!
redirect_back fallback_location: [:management, current_conference]
end
end
end