This project is archived and is in readonly mode.
Can't start server with Rails 1.9.2
-
Nikolai Lugovoi
Here is workaround - explicit call :to_ary
--- a/actionpack/lib/action_dispatch/routing/route_set.rb +++ b/actionpack/lib/action_dispatch/routing/route_set.rb @@ -287,7 +287,7 @@ module ActionDispatch
def add_route(app, conditions = {}, requirements = {}, defaults = {}, name = nil) route = Route.new(app, conditions, requirements, defaults, name)-
@set.add_route(*route) -
@set.add_route(*route.to_ary) named_routes[name] = route if name routes << route route</code>
-
-
josh
- Milestone cleared.
- State changed from new to open
Interesting. I guess * (splat) doesn't call to_ary anymore. Wonder if this was an intentional change.
-
Nikolai Lugovoi
actually, splat uses :to_a
-
Repository
- State changed from open to resolved
(from [6083a87d63af9ca1b66fedcb92cd4a395965173b]) Splat calls to_a not to_ary [#3423 state:resolved] http://github.com/rails/rails/commit/6083a87d63af9ca1b66fedcb92cd4a...