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