Sha256: 310cb3d34b095efa1d5f92bd5d9d392cef6bb74aa7bbd8d43fabd0d47118de9b
Contents?: true
Size: 586 Bytes
Versions: 9
Compression:
Stored size: 586 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 skip_before_action :store_current_location 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
9 entries across 9 versions & 1 rubygems