Sha256: 8d9816ef87cba0f2064c87647bd07bf9c96e672e59417f662e2a92c9d94b78be

Contents?: true

Size: 312 Bytes

Versions: 5

Compression:

Stored size: 312 Bytes

Contents

# encoding: utf-8
# 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

5 entries across 5 versions & 1 rubygems

Version Path
decidim-core-0.1.0 app/helpers/decidim/cookies_helper.rb
decidim-core-0.0.8.1 app/helpers/decidim/cookies_helper.rb
decidim-core-0.0.7 app/helpers/decidim/cookies_helper.rb
decidim-core-0.0.6 app/helpers/decidim/cookies_helper.rb
decidim-core-0.0.5 app/helpers/decidim/cookies_helper.rb