From e8210450ad141176efdc29895b835a0e132d14d5 Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Wed, 7 May 2014 16:48:11 -0700 Subject: remove dead code --- actionpack/lib/action_dispatch/routing/polymorphic_routes.rb | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'actionpack') diff --git a/actionpack/lib/action_dispatch/routing/polymorphic_routes.rb b/actionpack/lib/action_dispatch/routing/polymorphic_routes.rb index 63c7799316..8de69b6753 100644 --- a/actionpack/lib/action_dispatch/routing/polymorphic_routes.rb +++ b/actionpack/lib/action_dispatch/routing/polymorphic_routes.rb @@ -209,18 +209,6 @@ module ActionDispatch def routing_type(options) options[:routing_type] || :url end - - def build_route_part(record, inflection) - if record.is_a?(Symbol) || record.is_a?(String) - record.to_s - else - if inflection == :singular - model_name_from_record_or_class(record).singular_route_key - else - model_name_from_record_or_class(record).route_key - end - end - end end end end -- cgit v1.2.3