This project is archived and is in readonly mode.
Changeset [331234e0aba80cdaa87f57dffd71afdd7175a700] by yury
Revision 331234e0aba80cdaa87f57dffd71afdd7175a700,
committed by yury
· August 28th, 2010 @ 10:08 PM
Micro optimization for build_named_route_call in PolymorphicRoutes:
- use map instead of inject
- use [].join("_") instead of '<<'. It is a little bit faster for ruby 1.9.2 and x2 faster for ruby 1.8.7. http://gist.github.com/548143
[#5450 state:resolved]
Signed-off-by: José Valim jose.valim@gmail.com
http://github.com/rails/rails/commit/331234e0aba80cdaa87f57dffd71af...
1 changed file
-
M
actionpack/lib/action_dispatch/routing/polymorphic_routes.rb