checked for ActionContoller::Base instead of just ActionContoller

This commit is contained in:
Shailesh Patil 2012-04-03 15:44:41 +05:30
parent 9eebeb2155
commit 51702e0f7b

View File

@ -382,7 +382,7 @@ module CanCan
end
end
if defined? ActionController
if defined? ActionController::Base
ActionController::Base.class_eval do
include CanCan::ControllerAdditions
end