diff options
Diffstat (limited to 'actionpack')
-rw-r--r-- | actionpack/lib/action_dispatch/routing/polymorphic_routes.rb | 12 |
1 files changed, 0 insertions, 12 deletions
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 |