]> git.openstreetmap.org Git - rails.git/blobdiff - app/helpers/application_helper.rb
Refactor the share panel to use bootstrap forms
[rails.git] / app / helpers / application_helper.rb
index db8b51f5cd9e7f7d30b904bf3cd227913c128113..c8473adfc3d777f72f65d6c69f207e0e20721966 100644 (file)
@@ -9,12 +9,12 @@ module ApplicationHelper
     end
   end
 
-  def rss_link_to(*args)
-    link_to(image_tag("RSS.png", :size => "16x16", :border => 0), Hash[*args], :class => "rsssmall")
+  def rss_link_to(args = {})
+    link_to(image_tag("RSS.png", :size => "16x16", :border => 0), args, :class => "rsssmall")
   end
 
-  def atom_link_to(*args)
-    link_to(image_tag("RSS.png", :size => "16x16", :border => 0), Hash[*args], :class => "rsssmall")
+  def atom_link_to(args = {})
+    link_to(image_tag("RSS.png", :size => "16x16", :border => 0), args, :class => "rsssmall")
   end
 
   def richtext_area(object_name, method, options = {})