diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2015-02-28 16:00:13 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2015-02-28 16:00:27 -0800 |
commit | 92849df7324b9aaa1e8f1660101939438420c829 (patch) | |
tree | 2b50cd84222d108fbd7e3bdc356ba6b20dbbe5fe /actionpack/lib/action_dispatch | |
parent | daa455f5ca866ab6a0e34e094e4e4eb3f77bfea1 (diff) | |
download | rails-92849df7324b9aaa1e8f1660101939438420c829.tar.gz rails-92849df7324b9aaa1e8f1660101939438420c829.tar.bz2 rails-92849df7324b9aaa1e8f1660101939438420c829.zip |
drop allocations when handling model url generation
Diffstat (limited to 'actionpack/lib/action_dispatch')
-rw-r--r-- | actionpack/lib/action_dispatch/routing/polymorphic_routes.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/routing/polymorphic_routes.rb b/actionpack/lib/action_dispatch/routing/polymorphic_routes.rb index 2e116ea9cd..f2ce175cac 100644 --- a/actionpack/lib/action_dispatch/routing/polymorphic_routes.rb +++ b/actionpack/lib/action_dispatch/routing/polymorphic_routes.rb @@ -254,7 +254,7 @@ module ActionDispatch @key_strategy.call model.model_name end - named_route = prefix + "#{name}_#{suffix}" + named_route = "#{prefix}#{name}_#{suffix}" [named_route, args] end |