Class: MinimumViableProduct::AnalyticsController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- MinimumViableProduct::AnalyticsController
- Defined in:
- app/controllers/mvp/analytics_controller.rb
Constant Summary
Constants included from SessionConcern
Constants included from AnalyticsConcern
MinimumViableProduct::AnalyticsConcern::INVISIBLE_SESSION_COOKIE
Instance Method Summary collapse
Methods included from SessionConcern
#current_user, #redirect_back_or_default, #sign_in, #store_location
Methods included from AnalyticsConcern
Instance Method Details
#optout ⇒ Object
5 6 7 8 9 10 11 12 |
# File 'app/controllers/mvp/analytics_controller.rb', line 5 def optout [AnalyticsConcern::INVISIBLE_SESSION_COOKIE] = { :value => true, :expires => 1.year.from_now, } redirect_to root_path end |