Merge pull request #618 from spatil/master
Check for defined ActionController::Base instead ActionController
This commit is contained in:
commit
33e33c584e
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user