Permalink
Browse files

checked for ActionContoller::Base instead of just ActionContoller

  • Loading branch information...
spatil committed Apr 3, 2012
1 parent 9eebeb2 commit 51702e0f7b3e2331bee164adab79a7016ba8b868
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/cancan/controller_additions.rb
@@ -382,7 +382,7 @@ def cannot?(*args)
end
end
-if defined? ActionController
+if defined? ActionController::Base
ActionController::Base.class_eval do
include CanCan::ControllerAdditions
end

0 comments on commit 51702e0

Please sign in to comment.