Module: Streamliner::ControllerInterceptor
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/streamliner/controller_interceptor.rb
Instance Method Summary collapse
Instance Method Details
#count_controller ⇒ Object
10 11 12 13 14 15 |
# File 'lib/streamliner/controller_interceptor.rb', line 10 def count_controller controller = params[:controller] cached_count = Rails.cache.fetch(:streamliner_counter) updated_count = Streamliner::Counter.new(controller, cached_count).add Rails.cache.write(:streamliner_counter, updated_count) end |