<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -80,9 +80,8 @@ module ActionController
         record_or_hash_or_array = record_or_hash_or_array[0] if record_or_hash_or_array.size == 1
       end
 
-      record    = extract_record(record_or_hash_or_array)
-      record    = record.to_model if record.respond_to?(:to_model)
-      namespace = extract_namespace(record_or_hash_or_array)
+      record = extract_record(record_or_hash_or_array)
+      record = record.to_model if record.respond_to?(:to_model)
 
       args = case record_or_hash_or_array
         when Hash;  [ record_or_hash_or_array ]
@@ -105,8 +104,7 @@ module ActionController
       end
 
       args.delete_if {|arg| arg.is_a?(Symbol) || arg.is_a?(String)}
-
-      named_route = build_named_route_call(record_or_hash_or_array, namespace, inflection, options)
+      named_route = build_named_route_call(record_or_hash_or_array, inflection, options)
 
       url_options = options.except(:action, :routing_type)
       unless url_options.empty?
@@ -138,18 +136,6 @@ module ActionController
       EOT
     end
 
-    def formatted_polymorphic_url(record_or_hash, options = {})
-      ActiveSupport::Deprecation.warn(&quot;formatted_polymorphic_url has been deprecated. Please pass :format to the polymorphic_url method instead&quot;, caller)
-      options[:format] = record_or_hash.pop if Array === record_or_hash
-      polymorphic_url(record_or_hash, options)
-    end
-
-    def formatted_polymorphic_path(record_or_hash, options = {})
-      ActiveSupport::Deprecation.warn(&quot;formatted_polymorphic_path has been deprecated. Please pass :format to the polymorphic_path method instead&quot;, caller)
-      options[:format] = record_or_hash.pop if record_or_hash === Array
-      polymorphic_url(record_or_hash, options.merge(:routing_type =&gt; :path))
-    end
-
     private
       def action_prefix(options)
         options[:action] ? &quot;#{options[:action]}_&quot; : ''
@@ -159,7 +145,7 @@ module ActionController
         options[:routing_type] || :url
       end
 
-      def build_named_route_call(records, namespace, inflection, options = {})
+      def build_named_route_call(records, inflection, options = {})
         unless records.is_a?(Array)
           record = extract_record(records)
           route  = ''
@@ -169,7 +155,7 @@ module ActionController
             if parent.is_a?(Symbol) || parent.is_a?(String)
               string &lt;&lt; &quot;#{parent}_&quot;
             else
-              string &lt;&lt; &quot;#{RecordIdentifier.__send__(&quot;plural_class_name&quot;, parent)}&quot;.singularize
+              string &lt;&lt; RecordIdentifier.__send__(&quot;plural_class_name&quot;, parent).singularize
               string &lt;&lt; &quot;_&quot;
             end
           end
@@ -178,12 +164,12 @@ module ActionController
         if record.is_a?(Symbol) || record.is_a?(String)
           route &lt;&lt; &quot;#{record}_&quot;
         else
-          route &lt;&lt; &quot;#{RecordIdentifier.__send__(&quot;plural_class_name&quot;, record)}&quot;
+          route &lt;&lt; RecordIdentifier.__send__(&quot;plural_class_name&quot;, record)
           route = route.singularize if inflection == :singular
           route &lt;&lt; &quot;_&quot;
         end
 
-        action_prefix(options) + namespace + route + routing_type(options).to_s
+        action_prefix(options) + route + routing_type(options).to_s
       end
 
       def extract_record(record_or_hash_or_array)
@@ -193,18 +179,5 @@ module ActionController
           else        record_or_hash_or_array
         end
       end
-
-      # Remove the first symbols from the array and return the url prefix
-      # implied by those symbols.
-      def extract_namespace(record_or_hash_or_array)
-        return &quot;&quot; unless record_or_hash_or_array.is_a?(Array)
-
-        namespace_keys = []
-        while (key = record_or_hash_or_array.first) &amp;&amp; key.is_a?(String) || key.is_a?(Symbol)
-          namespace_keys &lt;&lt; record_or_hash_or_array.shift
-        end
-
-        namespace_keys.map {|k| &quot;#{k}_&quot;}.join
-      end
   end
 end</diff>
      <filename>actionpack/lib/action_controller/polymorphic_routes.rb</filename>
    </modified>
    <modified>
      <diff>@@ -98,14 +98,6 @@ class PolymorphicRoutesTest &lt; ActionController::TestCase
     end
   end
 
-  def test_formatted_url_helper_is_deprecated
-    with_test_routes do
-      assert_deprecated do
-        formatted_polymorphic_url([@project, :pdf])
-      end
-    end
-  end
-  
   def test_format_option
     with_test_routes do 
       @project.save
@@ -251,6 +243,12 @@ class PolymorphicRoutesTest &lt; ActionController::TestCase
     end
   end
   
+  def test_with_array_containing_symbols
+    with_test_routes do
+      assert_equal &quot;http://example.com/series/new&quot;, polymorphic_url([:new, :series])
+    end
+  end
+  
   def test_with_hash
     with_test_routes do 
       @project.save</diff>
      <filename>actionpack/test/activerecord/polymorphic_routes_test.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>f51ac9e78014b6be531b4413de79fb041721df11</id>
    </parent>
  </parents>
  <author>
    <name>Jos&#233; Valim</name>
    <email>jose.valim@gmail.com</email>
  </author>
  <url>http://github.com/feldpost/rails/commit/427a7385eb9b784ad4372bf607217b0b7b2ca543</url>
  <id>427a7385eb9b784ad4372bf607217b0b7b2ca543</id>
  <committed-date>2009-10-28T12:13:48-07:00</committed-date>
  <authored-date>2009-10-28T12:13:48-07:00</authored-date>
  <message>Make polymorphic_url work with symbols again and refactor it [#1384 status:resolved]

Signed-off-by: Joshua Peek &lt;josh@joshpeek.com&gt;</message>
  <tree>3cbbd7d6ab19a349473f109b2e0867f6090f6ce6</tree>
  <committer>
    <name>Joshua Peek</name>
    <email>josh@joshpeek.com</email>
  </committer>
</commit>
