This can be useful when adding a new cookie or making modifications that require asking the user again.
18 lines
322 B
Ruby
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
|