Browse Source

CLDC-1619 Corrected cookie form lookup (#974)

pull/977/head
Sam 2 years ago committed by GitHub
parent
commit
8d9a9f0fc2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      app/controllers/cookies_controller.rb

2
app/controllers/cookies_controller.rb

@ -6,7 +6,7 @@ class CookiesController < ApplicationController
def show; end
def update
analytics_consent = params[:cookies_form][:analytics_consent]
analytics_consent = params[:cookies_form][:accept_analytics_cookies]
if %w[on off].include?(analytics_consent)
cookies[:accept_analytics_cookies] = { value: analytics_consent, expires: 1.year.from_now }
end

Loading…
Cancel
Save