Files
grecia/app/components/layout/cookies_consent/base_component.rb
taitus 018b00cd6e Allow managing versions of cookies consent
This can be useful when adding a new cookie or making
modifications that require asking the user again.
2025-01-23 17:16:57 +01:00

18 lines
322 B
Ruby

class Layout::CookiesConsent::BaseComponent < ApplicationComponent
def render?
feature?(:cookies_consent)
end
def more_info_link
Setting["cookies_consent.more_info_link"]
end
def vendors
Cookies::Vendor.all
end
def version_name
Setting["cookies_consent.version_name"].to_s.strip
end
end