removes unused json respond block [#77]
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user