aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2014-05-07 16:48:11 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2014-05-12 15:54:44 -0700
commite8210450ad141176efdc29895b835a0e132d14d5 (patch)
treef33a6b49582454da78b67cc551418cd4a4728514 /actionpack
parent34b2ded2ff632df8bbb3fe4a2ff1d9dbcbcba85b (diff)
downloadrails-e8210450ad141176efdc29895b835a0e132d14d5.tar.gz
rails-e8210450ad141176efdc29895b835a0e132d14d5.tar.bz2
rails-e8210450ad141176efdc29895b835a0e132d14d5.zip
remove dead code
Diffstat (limited to 'actionpack')
-rw-r--r--actionpack/lib/action_dispatch/routing/polymorphic_routes.rb12
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