Module: Vanity::Rails::Filters
- Defined in:
- lib/vanity/frameworks/rails.rb
Overview
Vanity needs these filters. They are includes in ActionController and automatically added when you use #use_vanity in your controller.
Instance Method Summary collapse
-
#vanity_track_filter ⇒ Object
Filter to track metrics pass _track param along to call track! on that alternative.
Instance Method Details
#vanity_track_filter ⇒ Object
Filter to track metrics pass _track param along to call track! on that alternative
148 149 150 151 152 |
# File 'lib/vanity/frameworks/rails.rb', line 148 def vanity_track_filter if request.get? && params[:_track] track! params[:_track] end end |