removes unused json respond block [#77]
This commit is contained in:
@@ -12,10 +12,7 @@ class ApplicationController < ActionController::Base
|
|||||||
protect_from_forgery with: :exception
|
protect_from_forgery with: :exception
|
||||||
|
|
||||||
rescue_from CanCan::AccessDenied do |exception|
|
rescue_from CanCan::AccessDenied do |exception|
|
||||||
respond_to do |format|
|
redirect_to main_app.root_url, alert: exception.message
|
||||||
format.json { render nothing: true, status: :forbidden }
|
|
||||||
format.html { redirect_to main_app.root_url, :alert => exception.message }
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|||||||
Reference in New Issue
Block a user