Module: Decidim::CookiesHelper

Defined in:
decidim-core/app/helpers/decidim/cookies_helper.rb

Overview

This module includes helpers to verify the acceptance of the cookie policy

Instance Method Summary collapse

Instance Method Details

#cookies_accepted?Boolean

Public: Returns true if the cookie policy has been accepted

Returns:

  • (Boolean)

7
8
9
# File 'decidim-core/app/helpers/decidim/cookies_helper.rb', line 7

def cookies_accepted?
  cookies[Decidim.config.consent_cookie_name].present?
end