aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@plataformatec.com.br>2012-06-26 01:30:15 -0700
committerJosé Valim <jose.valim@plataformatec.com.br>2012-06-26 01:30:15 -0700
commitcfd21f01474ca9f0e1650fad321e91bd47547167 (patch)
tree1937557bc2d73cef7a676ddaa39bc01b739a26a5 /actionpack/lib
parenta5ebf33b8fadb721186c23cb4605f33604c5a91b (diff)
parent88230b7cf77181c2088cce3314493caa9b3ac1fb (diff)
downloadrails-cfd21f01474ca9f0e1650fad321e91bd47547167.tar.gz
rails-cfd21f01474ca9f0e1650fad321e91bd47547167.tar.bz2
rails-cfd21f01474ca9f0e1650fad321e91bd47547167.zip
Merge pull request #6859 from bogdan/deprecate_monkey_patch
AS::Callbacks: deprecate monkey patch code
Diffstat (limited to 'actionpack/lib')
-rw-r--r--actionpack/lib/action_controller/caching/sweeping.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/actionpack/lib/action_controller/caching/sweeping.rb b/actionpack/lib/action_controller/caching/sweeping.rb
index cc1fa23935..39da15e26a 100644
--- a/actionpack/lib/action_controller/caching/sweeping.rb
+++ b/actionpack/lib/action_controller/caching/sweeping.rb
@@ -72,6 +72,12 @@ module ActionController #:nodoc:
self.controller = nil
end
+ def around(controller)
+ before(controller)
+ yield
+ after(controller)
+ end
+
protected
# gets the action cache path for the given options.
def action_path_for(options)