Merge pull request #618 from spatil/master

Check for defined ActionController::Base instead ActionController
This commit is contained in:
Ryan Bates 2012-06-19 10:41:14 -07:00
commit 33e33c584e

View File

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