Permalink
Browse files

Updating ActiveSupport patching to use #on_load.

  • Loading branch information...
kreeger committed Nov 24, 2012
1 parent 23958b4 commit 618fab1263e080ec0716b7f633161f4f62abb124
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/has_scope.rb
View
@@ -181,7 +181,7 @@ def current_scopes
end
end
-ActionController::Base.instance_eval do
+ActiveSupport.on_load :action_controller do
include HasScope
helper_method :current_scopes
end

0 comments on commit 618fab1

Please sign in to comment.