Sha256: f979544c8a68c775e99d9445024de1915455e806e704bfc72f169ce56fca318c
Contents?: true
Size: 456 Bytes
Versions: 1
Compression:
Stored size: 456 Bytes
Contents
# frozen_string_literal: true require_dependency "decidim/application_controller" module Decidim # This controller allows the user to accept the cookie policy. class CookiePolicyController < ApplicationController skip_authorization_check def accept response.set_cookie "decidim-cc", value: "true", path: "/", expires: 1.year.from_now.utc end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
decidim-core-0.0.5 | app/controllers/decidim/cookie_policy_controller.rb |