diff options
author | Carlhuda <carlhuda@engineyard.com> | 2010-02-25 17:56:58 -0800 |
---|---|---|
committer | Carlhuda <carlhuda@engineyard.com> | 2010-02-25 17:56:58 -0800 |
commit | f863045c45fbbe5972f557c02b729441ffe81502 (patch) | |
tree | 801be7cffc8d88ff215b72202bb7830233c5652c /actionpack/lib/action_dispatch/testing | |
parent | 8760add31a0415b4635059cf7fadabc26946c0c2 (diff) | |
download | rails-f863045c45fbbe5972f557c02b729441ffe81502.tar.gz rails-f863045c45fbbe5972f557c02b729441ffe81502.tar.bz2 rails-f863045c45fbbe5972f557c02b729441ffe81502.zip |
Rename metaclass to singleton_class
Diffstat (limited to 'actionpack/lib/action_dispatch/testing')
-rw-r--r-- | actionpack/lib/action_dispatch/testing/assertions/routing.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/testing/assertions/routing.rb b/actionpack/lib/action_dispatch/testing/assertions/routing.rb index 17caa2e030..5a3ff5a04c 100644 --- a/actionpack/lib/action_dispatch/testing/assertions/routing.rb +++ b/actionpack/lib/action_dispatch/testing/assertions/routing.rb @@ -147,7 +147,7 @@ module ActionDispatch # ROUTES TODO: Figure out this insanity silence_warnings { ::ActionController.const_set(:UrlFor, @router.named_url_helpers) } _router = @router - @controller.metaclass.send(:send, :include, @router.named_url_helpers) if @controller + @controller.singleton_class.send(:send, :include, @router.named_url_helpers) if @controller yield @router ensure @router = old_routes |