Skip to content

Commit

Permalink
Merge pull request ryanb#618 from spatil/master
Browse files Browse the repository at this point in the history
Check for defined ActionController::Base instead ActionController
  • Loading branch information
ryanb committed Jun 19, 2012
2 parents 7bf683d + 51702e0 commit 33e33c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/cancan/controller_additions.rb
Expand Up @@ -385,7 +385,7 @@ def cannot?(*args)
end
end

if defined? ActionController
if defined? ActionController::Base
ActionController::Base.class_eval do
include CanCan::ControllerAdditions
end
Expand Down

0 comments on commit 33e33c5

Please sign in to comment.