Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Updating ActiveSupport patching to use #on_load.

  • Loading branch information...
commit 618fab1263e080ec0716b7f633161f4f62abb124 1 parent 23958b4
@kreeger kreeger authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/has_scope.rb
View
2  lib/has_scope.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.