Class: MinimumViableProduct::AnalyticsController

Inherits:
ActionController::Base
  • Object
show all
Defined in:
app/controllers/minimum_viable_product/analytics_controller.rb

Instance Method Summary collapse

Instance Method Details

#optoutObject



3
4
5
6
7
8
9
10
# File 'app/controllers/minimum_viable_product/analytics_controller.rb', line 3

def optout
  cookies[AnalyticsConcern::INVISIBLE_SESSION_COOKIE] = {
    :value   => true,
    :expires => 1.year.from_now,
  }

  redirect_to root_path
end