Sha256: 0c53659e087b4ccb2795e205789c2a4c5467b9f8a83fdb6099a32998cf0d26df

Contents?: true

Size: 295 Bytes

Versions: 77

Compression:

Stored size: 295 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-cc"].present?
    end
  end
end

Version data entries

77 entries across 77 versions & 2 rubygems

Version Path
decidim-core-0.22.0 app/helpers/decidim/cookies_helper.rb
decidim-core-0.21.0 app/helpers/decidim/cookies_helper.rb
decidim-core-0.20.1 app/helpers/decidim/cookies_helper.rb
decidim-core-0.20.0 app/helpers/decidim/cookies_helper.rb
decidim-core-0.19.1 app/helpers/decidim/cookies_helper.rb
decidim-core-0.18.1 app/helpers/decidim/cookies_helper.rb
decidim-core-0.19.0 app/helpers/decidim/cookies_helper.rb
decidim-core-0.17.2 app/helpers/decidim/cookies_helper.rb
decidim-core-0.18.0 app/helpers/decidim/cookies_helper.rb
decidim-core-0.17.1 app/helpers/decidim/cookies_helper.rb
decidim-core-0.16.1 app/helpers/decidim/cookies_helper.rb
decidim-core-0.17.0 app/helpers/decidim/cookies_helper.rb
decidim-core-0.16.0 app/helpers/decidim/cookies_helper.rb
decidim-core-0.15.2 app/helpers/decidim/cookies_helper.rb
decidim-core-0.15.1 app/helpers/decidim/cookies_helper.rb
decidim-core-0.15.0 app/helpers/decidim/cookies_helper.rb
decidim-core-0.14.4 app/helpers/decidim/cookies_helper.rb
decidim-core-0.14.3 app/helpers/decidim/cookies_helper.rb
decidim-core-0.14.2 app/helpers/decidim/cookies_helper.rb
decidim-core-0.14.1 app/helpers/decidim/cookies_helper.rb