diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2014-05-01 11:31:59 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2014-05-12 15:54:41 -0700 |
commit | 38dcb27e7242a8c23095b359e015eb4246540317 (patch) | |
tree | d648e5a7e8928ff37e06788b35e95e85d8c9bbd2 /actionpack/lib/action_dispatch | |
parent | c29474ecd605f9192bcf8b623ecd0a3f69a2ad7e (diff) | |
download | rails-38dcb27e7242a8c23095b359e015eb4246540317.tar.gz rails-38dcb27e7242a8c23095b359e015eb4246540317.tar.bz2 rails-38dcb27e7242a8c23095b359e015eb4246540317.zip |
add a test for passing two models to the polymorphic_url method
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 6afd745fe2..36db278eab 100644 --- a/actionpack/lib/action_dispatch/routing/polymorphic_routes.rb +++ b/actionpack/lib/action_dispatch/routing/polymorphic_routes.rb @@ -194,7 +194,7 @@ module ActionDispatch def build_named_route_call(records, record, inflection, options) if records.is_a?(Array) - record = records.pop + records.pop route = records.map { |parent| build_route_part parent, :singular } else route = [] |