Rename cookie_id to banner_cookie

This commit is contained in:
Tom Hughes 2016-06-23 09:04:07 +01:00
parent e15c00dc2c
commit 49edb79711
2 changed files with 3 additions and 3 deletions

View 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