aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_dispatch/routing/route_set.rb
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2011-03-08 16:18:27 -0800
committerAaron Patterson <aaron.patterson@gmail.com>2011-03-08 16:18:27 -0800
commit0c777bace2aed1833e068358461de62bbd59cd0c (patch)
tree3fbf440d15cbc873962b4ff627853f55d760408c /actionpack/lib/action_dispatch/routing/route_set.rb
parentf975626dc1ce48e30e530197a82cc8221103ac2a (diff)
downloadrails-0c777bace2aed1833e068358461de62bbd59cd0c.tar.gz
rails-0c777bace2aed1833e068358461de62bbd59cd0c.tar.bz2
rails-0c777bace2aed1833e068358461de62bbd59cd0c.zip
stop being clever and just call methods on the Route object
Diffstat (limited to 'actionpack/lib/action_dispatch/routing/route_set.rb')
-rw-r--r--actionpack/lib/action_dispatch/routing/route_set.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/routing/route_set.rb b/actionpack/lib/action_dispatch/routing/route_set.rb
index 61053d4464..b28f6c2297 100644
--- a/actionpack/lib/action_dispatch/routing/route_set.rb
+++ b/actionpack/lib/action_dispatch/routing/route_set.rb
@@ -333,7 +333,7 @@ module ActionDispatch
def add_route(app, conditions = {}, requirements = {}, defaults = {}, name = nil, anchor = true)
raise ArgumentError, "Invalid route name: '#{name}'" unless name.blank? || name.to_s.match(/^[_a-z]\w*$/i)
route = Route.new(self, app, conditions, requirements, defaults, name, anchor)
- @set.add_route(*route)
+ @set.add_route(route.app, route.conditions, route.defaults, route.name)
named_routes[name] = route if name
routes << route
route