Sha256: 673bec167bc8b3b7b09a354fe31598c3a56602ef876668609fe74f27e509dc9e

Contents?: true

Size: 307 Bytes

Versions: 1

Compression:

Stored size: 307 Bytes

Contents

require_dependency "mvp/application_controller"

module Mvp
  class AnalyticsController < ApplicationController
    def optout
      cookies[AnalyticsConcern::INVISIBLE_SESSION_COOKIE] = {
        :value   => true,
        :expires => 1.year.from_now,
      }

      redirect_to root_path
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
minimum-viable-product-0.0.2 app/controllers/mvp/analytics_controller.rb