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