aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_dispatch/routing/route_set.rb
diff options
context:
space:
mode:
authorPiotr Sarnacki <drogus@gmail.com>2010-08-25 13:41:56 +0200
committerPiotr Sarnacki <drogus@gmail.com>2010-09-03 22:59:13 +0200
commitb1c66f060bba22d16abf6d24d3df762c240e367c (patch)
tree351e92d8bd64d18aee417c19a48bd55c36dbbe1c /actionpack/lib/action_dispatch/routing/route_set.rb
parente35c2043b135a95104e3eeb3e12cbcde541fa1b4 (diff)
downloadrails-b1c66f060bba22d16abf6d24d3df762c240e367c.tar.gz
rails-b1c66f060bba22d16abf6d24d3df762c240e367c.tar.bz2
rails-b1c66f060bba22d16abf6d24d3df762c240e367c.zip
Move RoutesProxy to separate file
Diffstat (limited to 'actionpack/lib/action_dispatch/routing/route_set.rb')
-rw-r--r--actionpack/lib/action_dispatch/routing/route_set.rb32
1 files changed, 0 insertions, 32 deletions
diff --git a/actionpack/lib/action_dispatch/routing/route_set.rb b/actionpack/lib/action_dispatch/routing/route_set.rb
index c09c1fef6f..0d83ca956b 100644
--- a/actionpack/lib/action_dispatch/routing/route_set.rb
+++ b/actionpack/lib/action_dispatch/routing/route_set.rb
@@ -261,38 +261,6 @@ module ActionDispatch
named_routes.install(destinations, regenerate_code)
end
- class RoutesProxy
- include ActionDispatch::Routing::UrlFor
-
- attr_accessor :scope, :routes
- alias :_routes :routes
-
- def initialize(routes, scope)
- @routes, @scope = routes, scope
- end
-
- def url_options
- scope.send(:_with_routes, routes) do
- scope.url_options
- end
- end
-
- def method_missing(method, *args)
- if routes.url_helpers.respond_to?(method)
- self.class.class_eval <<-RUBY, __FILE__, __LINE__ + 1
- def #{method}(*args)
- options = args.extract_options!
- args << url_options.merge((options || {}).symbolize_keys)
- routes.url_helpers.#{method}(*args)
- end
- RUBY
- send(method, *args)
- else
- super
- end
- end
- end
-
module MountedHelpers
end