diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2012-08-29 11:30:17 -0500 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2012-08-29 14:23:27 -0500 |
commit | 3da10e3261c60b98bb24f2e56ad3829499252663 (patch) | |
tree | ad1d83ca71e193a9c2e2bd8664c922192573e3af /actionpack/lib | |
parent | d3354957fcc8609017e5900daaaedb5b573c2aa3 (diff) | |
download | rails-3da10e3261c60b98bb24f2e56ad3829499252663.tar.gz rails-3da10e3261c60b98bb24f2e56ad3829499252663.tar.bz2 rails-3da10e3261c60b98bb24f2e56ad3829499252663.zip |
Fix spacing
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_controller/caching.rb | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/actionpack/lib/action_controller/caching.rb b/actionpack/lib/action_controller/caching.rb index 2443041c5d..be29099fbe 100644 --- a/actionpack/lib/action_controller/caching.rb +++ b/actionpack/lib/action_controller/caching.rb @@ -72,14 +72,14 @@ module ActionController #:nodoc: request.get? && response.status == 200 end - protected - # Convenience accessor - def cache(key, options = {}, &block) - if cache_configured? - cache_store.fetch(ActiveSupport::Cache.expand_cache_key(key, :controller), options, &block) - else - yield + protected + # Convenience accessor + def cache(key, options = {}, &block) + if cache_configured? + cache_store.fetch(ActiveSupport::Cache.expand_cache_key(key, :controller), options, &block) + else + yield + end end - end end end |