Sha256: 7db9cbaba6acb2f594f1218d1ca39202c82d90c710952d4f424fd9e8cfa34e56
Contents?: true
Size: 582 Bytes
Versions: 7
Compression:
Stored size: 582 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
7 entries across 7 versions & 1 rubygems