Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix spacing

  • Loading branch information...
commit 3da10e3261c60b98bb24f2e56ad3829499252663 1 parent d335495
@dhh dhh authored
Showing with 8 additions and 8 deletions.
  1. +8 −8 actionpack/lib/action_controller/caching.rb
View
16 actionpack/lib/action_controller/caching.rb
@@ -72,14 +72,14 @@ def caching_allowed?
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
Please sign in to comment.
Something went wrong with that request. Please try again.