Merge pull request #618 from spatil/master
Check for defined ActionController::Base instead ActionController
This commit is contained in:
@@ -385,7 +385,7 @@ module CanCan
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
if defined? ActionController
|
if defined? ActionController::Base
|
||||||
ActionController::Base.class_eval do
|
ActionController::Base.class_eval do
|
||||||
include CanCan::ControllerAdditions
|
include CanCan::ControllerAdditions
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user