checked for ActionContoller::Base instead of just ActionContoller
This commit is contained in:
parent
9eebeb2155
commit
51702e0f7b
|
@ -382,7 +382,7 @@ module CanCan
|
|||
end
|
||||
end
|
||||
|
||||
if defined? ActionController
|
||||
if defined? ActionController::Base
|
||||
ActionController::Base.class_eval do
|
||||
include CanCan::ControllerAdditions
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue
Block a user