module Stashing::ControllerExt
Protected Instance Methods
append_info_to_payload(payload)
click to toggle source
Calls superclass method
# File lib/stashing/controller_ext.rb, line 17 def append_info_to_payload(payload) super # At the end of the request (process_action.action_controller), add the store to the payload Stashing.stash.each do |key, value| payload[key] = value end end
enable_cache_instrumentation()
click to toggle source
# File lib/stashing/controller_ext.rb, line 12 def enable_cache_instrumentation # Cache instrumentation is disabled by default in Rails Rails.cache.class.instrument = true if Stashing.enable_cache_instrumentation end