]> git.openstreetmap.org Git - rails.git/blobdiff - app/helpers/banner_helper.rb
DB changes + Related issues added
[rails.git] / app / helpers / banner_helper.rb
index 92b633eca5f343c643601431675968c85f286c54..98308ae12a2b87e3a6f0bef937dd78a4a6206237 100644 (file)
@@ -19,7 +19,7 @@ module BannerHelper
     min_index = 9999
 
     banners.each do |k, v|
-      ckey = cookie_id(v[:id]).to_sym
+      ckey = banner_cookie(v[:id]).to_sym
       cval = cookies[ckey] || 0
       next if cval == "hide"
 
@@ -41,7 +41,7 @@ module BannerHelper
     end
   end
 
-  def cookie_id(key)
+  def banner_cookie(key)
     "_osm_banner_#{key}"
   end
 end