Sha256: 3e46c5b5f9de13755c0c0ee8b98999d8c70c6f39d7d2458074c68cdd95d6bb3a
Contents?: true
Size: 581 Bytes
Versions: 4
Compression:
Stored size: 581 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 respond_to do |format| format.js format.html { redirect_back fallback_location: root_path } end end end end
Version data entries
4 entries across 4 versions & 1 rubygems