Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

checked for ActionContoller::Base instead of just ActionContoller

  • Loading branch information...
commit 51702e0f7b3e2331bee164adab79a7016ba8b868 1 parent 9eebeb2
@spatil authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/cancan/controller_additions.rb
View
2  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
Please sign in to comment.
Something went wrong with that request. Please try again.