Rename cookie_id to banner_cookie
This commit is contained in:
parent
e15c00dc2c
commit
49edb79711
2 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue