From b44bfa4c244e25642bd838972ee41669d2b37222 Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Thu, 1 May 2014 16:03:26 -0700 Subject: always pass options to the _url method --- actionpack/lib/action_dispatch/routing/polymorphic_routes.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'actionpack/lib/action_dispatch/routing') diff --git a/actionpack/lib/action_dispatch/routing/polymorphic_routes.rb b/actionpack/lib/action_dispatch/routing/polymorphic_routes.rb index dd2cbdcddc..55f40fe204 100644 --- a/actionpack/lib/action_dispatch/routing/polymorphic_routes.rb +++ b/actionpack/lib/action_dispatch/routing/polymorphic_routes.rb @@ -135,9 +135,7 @@ module ActionDispatch named_route = build_named_route_call(record_or_hash_or_array, record, inflection, options) url_options = options.except(:action, :routing_type) - unless url_options.empty? - args << url_options - end + args << url_options args.collect! { |a| convert_to_model(a) } -- cgit v1.2.3