]> git.openstreetmap.org Git - rails.git/blobdiff - app/helpers/application_helper.rb
Drop with_format and user the new :formats render option instead
[rails.git] / app / helpers / application_helper.rb
index dfbb04138f0e6219e2dc13af47071c904f229ce1..f4b900017d4c8408d8a5e5f633bba9e96da15613 100644 (file)
@@ -137,14 +137,6 @@ module ApplicationHelper
     end
   end
 
-  def with_format(format, &block)
-    old_format = @template_format
-    @template_format = format
-    result = block.call
-    @template_format = old_format
-    return result
-  end
-
 private
 
   def javascript_strings_for_key(key)