Micro optimization for build_named_route_call in PolymorphicRoutes:
1. use map instead of inject 2. 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: NJosé Valim <jose.valim@gmail.com>
Showing
想要评论请 注册 或 登录