Fixes Hound CI violations

This commit is contained in:
Chrisbr 2014-04-28 21:42:09 +02:00
parent 169fab5c31
commit 8154e6f72c
6 changed files with 44 additions and 32 deletions

View file

@ -3,18 +3,20 @@ class Admin::TracksController < ApplicationController
def show
respond_to do |format|
format.html { render :tracks_list}
format.json { render :json => @conference.tracks.to_json }
format.html { render :tracks_list }
format.json { render json: @conference.tracks.to_json }
end
end
def update
if @conference.update_attributes(params[:conference])
redirect_to(admin_conference_tracks_path(:conference_id => @conference.short_title), :notice => 'Tracks were successfully updated.')
redirect_to(admin_conference_tracks_path(
conference_id: @conference.short_title),
notice: 'Tracks were successfully updated.')
else
redirect_to(admin_conference_tracks_path(:conference_id => @conference.short_title), :notice => 'Tracks update failed.')
redirect_to(admin_conference_tracks_path(
conference_id: @conference.short_title),
notice: 'Tracks update failed.')
end
end
end