Skip to content
This repository
Browse code

Fix spacing

  • Loading branch information...
commit 3da10e3261c60b98bb24f2e56ad3829499252663 1 parent d335495
David Heinemeier Hansson dhh authored

Showing 1 changed file with 8 additions and 8 deletions. Show diff stats Hide diff stats

  1. +8 8 actionpack/lib/action_controller/caching.rb
16 actionpack/lib/action_controller/caching.rb
@@ -72,14 +72,14 @@ def caching_allowed?
72 72 request.get? && response.status == 200
73 73 end
74 74
75   - protected
76   - # Convenience accessor
77   - def cache(key, options = {}, &block)
78   - if cache_configured?
79   - cache_store.fetch(ActiveSupport::Cache.expand_cache_key(key, :controller), options, &block)
80   - else
81   - yield
  75 + protected
  76 + # Convenience accessor
  77 + def cache(key, options = {}, &block)
  78 + if cache_configured?
  79 + cache_store.fetch(ActiveSupport::Cache.expand_cache_key(key, :controller), options, &block)
  80 + else
  81 + yield
  82 + end
82 83 end
83   - end
84 84 end
85 85 end

0 comments on commit 3da10e3

Please sign in to comment.
Something went wrong with that request. Please try again.