diff options
author | Sandeep <sandeep.ravichandran@sourcebits.com> | 2012-03-16 19:41:15 +0530 |
---|---|---|
committer | Sandeep <sandeep.ravichandran@sourcebits.com> | 2012-03-16 19:42:00 +0530 |
commit | 5ae53d5cde5a5e3041d72a671f7763f6951fab4c (patch) | |
tree | b536c9d921e5ee32317ed1e44da585c382c1067b /actionpack/lib | |
parent | 5245eb30b144380d9c8c48538a978fb8facb71c0 (diff) | |
download | rails-5ae53d5cde5a5e3041d72a671f7763f6951fab4c.tar.gz rails-5ae53d5cde5a5e3041d72a671f7763f6951fab4c.tar.bz2 rails-5ae53d5cde5a5e3041d72a671f7763f6951fab4c.zip |
fixed - warning: instance variable @controller not initialized
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_controller/caching/sweeping.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/actionpack/lib/action_controller/caching/sweeping.rb b/actionpack/lib/action_controller/caching/sweeping.rb index 808a6fe5f3..bb176ca3f9 100644 --- a/actionpack/lib/action_controller/caching/sweeping.rb +++ b/actionpack/lib/action_controller/caching/sweeping.rb @@ -54,6 +54,11 @@ module ActionController #:nodoc: class Sweeper < ActiveRecord::Observer #:nodoc: attr_accessor :controller + def initialize(*args) + super + @controller = nil + end + def before(controller) self.controller = controller callback(:before) if controller.perform_caching |