Sha256: 3cce0608b213eef758a81eb6429101dae5bc232da65d05cc507edd3731a66f84
Contents?: true
Size: 538 Bytes
Versions: 34
Compression:
Stored size: 538 Bytes
Contents
# frozen_string_literal: true module Decidim # This controller allows the user to accept the cookie policy. class CookiePolicyController < Decidim::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
34 entries across 34 versions & 2 rubygems