diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2016-02-24 00:08:01 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2016-02-24 00:08:01 -0300 |
commit | 338750393d0f19b193f0ead26adff2b9f586ec18 (patch) | |
tree | 40e6a25f953cd8dfb8f3f968d4e2a97879111b0c /actionpack | |
parent | 40fa818580a9277d8d1a02241f1422dbf83a8aa1 (diff) | |
download | rails-338750393d0f19b193f0ead26adff2b9f586ec18.tar.gz rails-338750393d0f19b193f0ead26adff2b9f586ec18.tar.bz2 rails-338750393d0f19b193f0ead26adff2b9f586ec18.zip |
Move private methods to the private visibility
Diffstat (limited to 'actionpack')
-rw-r--r-- | actionpack/lib/action_controller/caching.rb | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/actionpack/lib/action_controller/caching.rb b/actionpack/lib/action_controller/caching.rb index 9df4ab6c7a..a9a8508abc 100644 --- a/actionpack/lib/action_controller/caching.rb +++ b/actionpack/lib/action_controller/caching.rb @@ -27,16 +27,18 @@ module ActionController include AbstractController::Caching end - def instrument_payload(key) - { - controller: controller_name, - action: action_name, - key: key - } - end + private - def instrument_name - "action_controller" - end + def instrument_payload(key) + { + controller: controller_name, + action: action_name, + key: key + } + end + + def instrument_name + "action_controller" + end end end |