Replace flash with flash.now

This commit is contained in:
rahul 2017-08-28 22:31:24 +05:30
parent 27fa79a826
commit 89509519ef
3 changed files with 8 additions and 8 deletions

View file

@ -102,7 +102,7 @@ module Admin
ahoy.track 'Event submission', title: 'New submission'
redirect_to admin_conference_program_events_path(@conference.short_title), notice: 'Event was successfully submitted.'
else
flash[:error] = "Could not submit proposal: #{@event.errors.full_messages.join(', ')}"
flash.now[:error] = "Could not submit proposal: #{@event.errors.full_messages.join(', ')}"
render action: 'new'
end
end