clarion/app/controllers/management/call_for_participations_con...

14 lines
394 B
Ruby
Raw Permalink Normal View History

module Management
class CallForParticipationsController < ManagementController
def create
current_conference.call_for_participation.open!
2019-04-28 02:12:54 +03:00
redirect_back fallback_location: [:management, current_conference]
end
def destroy
current_conference.call_for_participation.close!
2019-04-28 02:12:54 +03:00
redirect_back fallback_location: [:management, current_conference]
end
end
end