Use translation in management/events controller

This commit is contained in:
Petko Bordjukov 2019-01-08 18:16:50 +02:00
parent 9848898695
commit db85a64686
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ module Management
@event = @conference.events.find(params[:id]) @event = @conference.events.find(params[:id])
if @event.update(event_params) if @event.update(event_params)
flash[:notice] = 'Event was successfully updated.' flash[:notice] = t('.event_successfully_updated')
redirect_to [:management, @conference, @event] redirect_to [:management, @conference, @event]
else else
render action: 'edit' render action: 'edit'