aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/caching.rb
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2012-08-29 11:30:17 -0500
committerDavid Heinemeier Hansson <david@loudthinking.com>2012-08-29 14:23:27 -0500
commit3da10e3261c60b98bb24f2e56ad3829499252663 (patch)
treead1d83ca71e193a9c2e2bd8664c922192573e3af /actionpack/lib/action_controller/caching.rb
parentd3354957fcc8609017e5900daaaedb5b573c2aa3 (diff)
downloadrails-3da10e3261c60b98bb24f2e56ad3829499252663.tar.gz
rails-3da10e3261c60b98bb24f2e56ad3829499252663.tar.bz2
rails-3da10e3261c60b98bb24f2e56ad3829499252663.zip
Fix spacing
Diffstat (limited to 'actionpack/lib/action_controller/caching.rb')
-rw-r--r--actionpack/lib/action_controller/caching.rb16
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