Allow managing versions of cookies consent

This can be useful when adding a new cookie or making
modifications that require asking the user again.
This commit is contained in:
taitus
2024-12-09 16:36:06 +01:00
parent 5ffaf7a80e
commit 018b00cd6e
10 changed files with 35 additions and 16 deletions

View File

@@ -10,4 +10,8 @@ class Layout::CookiesConsent::BaseComponent < ApplicationComponent
def vendors
Cookies::Vendor.all
end
def version_name
Setting["cookies_consent.version_name"].to_s.strip
end
end