Sha256: ac1c8f1162adf3e849a586fd6264e6d402ad08c81c1fb581137694b89dd85e59

Contents?: true

Size: 317 Bytes

Versions: 33

Compression:

Stored size: 317 Bytes

Contents

# frozen_string_literal: true

module Decidim
  # This module includes helpers to verify the acceptance of the cookie policy
  module CookiesHelper
    # Public: Returns true if the cookie policy has been accepted
    def cookies_accepted?
      cookies[Decidim.config.consent_cookie_name].present?
    end
  end
end

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
decidim-core-0.26.10 app/helpers/decidim/cookies_helper.rb
decidim-core-0.26.9 app/helpers/decidim/cookies_helper.rb
decidim-core-0.26.8 app/helpers/decidim/cookies_helper.rb
decidim-core-0.26.7 app/helpers/decidim/cookies_helper.rb
decidim-core-0.26.5 app/helpers/decidim/cookies_helper.rb
decidim-core-0.26.4 app/helpers/decidim/cookies_helper.rb
decidim-core-0.26.3 app/helpers/decidim/cookies_helper.rb
decidim-core-0.26.2 app/helpers/decidim/cookies_helper.rb
decidim-core-0.26.1 app/helpers/decidim/cookies_helper.rb
decidim-core-0.26.0 app/helpers/decidim/cookies_helper.rb
decidim-core-0.26.0.rc2 app/helpers/decidim/cookies_helper.rb
decidim-core-0.26.0.rc1 app/helpers/decidim/cookies_helper.rb
decidim-core-0.25.2 app/helpers/decidim/cookies_helper.rb
decidim-core-0.25.1 app/helpers/decidim/cookies_helper.rb
decidim-core-0.25.0 app/helpers/decidim/cookies_helper.rb
decidim-core-0.25.0.rc4 app/helpers/decidim/cookies_helper.rb
decidim-core-0.25.0.rc3 app/helpers/decidim/cookies_helper.rb
decidim-core-0.25.0.rc2 app/helpers/decidim/cookies_helper.rb
decidim-core-0.25.0.rc1 app/helpers/decidim/cookies_helper.rb
decidim-core-0.24.3 app/helpers/decidim/cookies_helper.rb