Add cancan authorization in all main urls

This commit is contained in:
kikito
2015-08-10 14:59:42 +02:00
parent a9a4f4fb81
commit 30e738a2fe
4 changed files with 6 additions and 1 deletions

View File

@@ -1,6 +1,9 @@
require "application_responder"
class ApplicationController < ActionController::Base
check_authorization unless: :devise_controller?
self.responder = ApplicationResponder
respond_to :html