Commit 95a3abb8 authored by Mario Manno's avatar Mario Manno

add missing stron params

parent 8a9bef73
......@@ -26,7 +26,7 @@ class ScheduleController < ApplicationController
def update_event
authorize! :crud, Event
event = @conference.events.find(params[:id])
affected_event_ids = event.update_attributes_and_return_affected_ids(params[:event])
affected_event_ids = event.update_attributes_and_return_affected_ids(event_params)
@affected_events = @conference.events.find(affected_event_ids)
end
......@@ -73,6 +73,10 @@ class ScheduleController < ApplicationController
private
def event_params
params.require(:event).permit(:start_time, :room_id)
end
def check_conference_locale(locale='en')
if @conference.language_codes.include?(locale)
locale
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment