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
|
||||
|
||||
if defined? ActionController
|
||||
if defined? ActionController::Base
|
||||
ActionController::Base.class_eval do
|
||||
include CanCan::ControllerAdditions
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue
Block a user