removes unused json respond block [#77]

This commit is contained in:
rgarcia
2015-08-07 21:52:14 +02:00
parent dac5b8d22a
commit a949d54a85

View File

@@ -12,10 +12,7 @@ class ApplicationController < ActionController::Base
protect_from_forgery with: :exception
rescue_from CanCan::AccessDenied do |exception|
respond_to do |format|
format.json { render nothing: true, status: :forbidden }
format.html { redirect_to main_app.root_url, :alert => exception.message }
end
redirect_to main_app.root_url, alert: exception.message
end
private