diff options
author | Stan Lo <a22301613@yahoo.com.tw> | 2015-12-31 09:41:48 +0800 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2016-02-23 21:06:40 -0300 |
commit | 1de6f7938dbc58a618a89397aad5f217a6221d17 (patch) | |
tree | c8a3cefd9748e778422e2509afd753516c8fd917 /actionpack/lib/action_controller/caching.rb | |
parent | 3e824d3f5b32bae70832fe0c1c329ce062f79ff9 (diff) | |
download | rails-1de6f7938dbc58a618a89397aad5f217a6221d17.tar.gz rails-1de6f7938dbc58a618a89397aad5f217a6221d17.tar.bz2 rails-1de6f7938dbc58a618a89397aad5f217a6221d17.zip |
Make caching configuration more flexible
Diffstat (limited to 'actionpack/lib/action_controller/caching.rb')
-rw-r--r-- | actionpack/lib/action_controller/caching.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/actionpack/lib/action_controller/caching.rb b/actionpack/lib/action_controller/caching.rb index e832f4adf4..999c2636da 100644 --- a/actionpack/lib/action_controller/caching.rb +++ b/actionpack/lib/action_controller/caching.rb @@ -29,5 +29,17 @@ module ActionController included do include ActionDispatch::Caching end + + def instrument_payload(key) + { + controller: controller_name, + action: action_name, + key: key + } + end + + def instrument_name + "action_controller" + end end end |