diff options
author | Xavier Noria <fxn@hashref.com> | 2009-06-13 01:01:42 +0200 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2009-06-12 16:14:06 -0700 |
commit | d32965399ccfa2052a4d52b70db1bae0ca16830b (patch) | |
tree | 7f41b1846efd2d11d7ebff15a115cba02ad75f11 /actionpack/lib | |
parent | 54a5446641e4386285231385700b95a223931bff (diff) | |
download | rails-d32965399ccfa2052a4d52b70db1bae0ca16830b.tar.gz rails-d32965399ccfa2052a4d52b70db1bae0ca16830b.tar.bz2 rails-d32965399ccfa2052a4d52b70db1bae0ca16830b.zip |
uses Object#metaclass and Object#class_eval in a few spots
[#2797 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_controller/testing/integration.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/testing/integration.rb b/actionpack/lib/action_controller/testing/integration.rb index af4ccb7837..37ca93f22c 100644 --- a/actionpack/lib/action_controller/testing/integration.rb +++ b/actionpack/lib/action_controller/testing/integration.rb @@ -1,6 +1,7 @@ require 'stringio' require 'uri' require 'active_support/test_case' +require 'active_support/core_ext/object/metaclass' require 'rack/mock_session' require 'rack/test/cookie_jar' @@ -191,7 +192,7 @@ module ActionController unless defined? @named_routes_configured # install the named routes in this session instance. - klass = class << self; self; end + klass = metaclass Routing::Routes.install_helpers(klass) # the helpers are made protected by default--we make them public for |