lib/action_controller/polymorphic_routes.rb in actionpack-3.0.0.beta2 vs lib/action_controller/polymorphic_routes.rb in actionpack-3.0.0.beta3

- old
+ new

@@ -118,10 +118,10 @@ def polymorphic_path(record_or_hash_or_array, options = {}) polymorphic_url(record_or_hash_or_array, options.merge(:routing_type => :path)) end %w(edit new).each do |action| - module_eval <<-EOT, __FILE__, __LINE__ + module_eval <<-EOT, __FILE__, __LINE__ + 1 def #{action}_polymorphic_url(record_or_hash, options = {}) # def edit_polymorphic_url(record_or_hash, options = {}) polymorphic_url( # polymorphic_url( record_or_hash, # record_or_hash, options.merge(:action => "#{action}")) # options.merge(:action => "edit")) end # end