diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2010-02-25 09:32:29 -0800 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2010-02-25 09:32:29 -0800 |
commit | f7b0a857e97304a5daeb47313759b9bf0d7e2fc9 (patch) | |
tree | 81bda0d86cc1d22e3e8c50e5e852d200aec7be57 /actionpack/lib | |
parent | 6b12d74026808a3014f1dff34481006a96e0f18f (diff) | |
download | rails-f7b0a857e97304a5daeb47313759b9bf0d7e2fc9.tar.gz rails-f7b0a857e97304a5daeb47313759b9bf0d7e2fc9.tar.bz2 rails-f7b0a857e97304a5daeb47313759b9bf0d7e2fc9.zip |
Use Object#singleton_class instead of #metaclass. Prefer Ruby's choice.
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_dispatch/testing/integration.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/lib/action_dispatch/testing/integration.rb b/actionpack/lib/action_dispatch/testing/integration.rb index f93059759b..14c7ff642b 100644 --- a/actionpack/lib/action_dispatch/testing/integration.rb +++ b/actionpack/lib/action_dispatch/testing/integration.rb @@ -1,6 +1,6 @@ require 'stringio' require 'uri' -require 'active_support/core_ext/object/metaclass' +require 'active_support/core_ext/object/singleton_class' require 'rack/test' module ActionDispatch @@ -187,7 +187,7 @@ module ActionDispatch unless defined? @named_routes_configured # install the named routes in this session instance. - klass = metaclass + klass = singleton_class ActionDispatch::Routing::Routes.install_helpers(klass) # the helpers are made protected by default--we make them public for |