Class: ActionController::Caching::Sweeper
- Inherits:
-
ActiveRecord::Observer
- Object
- ActiveRecord::Observer
- ActionController::Caching::Sweeper
- Includes:
- Reloadable::Deprecated
- Defined in:
- lib/action_controller/caching.rb
Overview
:nodoc:
Instance Attribute Summary collapse
-
#controller ⇒ Object
Returns the value of attribute controller.
Instance Method Summary collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method, *arguments) ⇒ Object (private)
609 610 611 612 |
# File 'lib/action_controller/caching.rb', line 609 def method_missing(method, *arguments) return if @controller.nil? @controller.send(method, *arguments) end |
Instance Attribute Details
#controller ⇒ Object
Returns the value of attribute controller.
583 584 585 |
# File 'lib/action_controller/caching.rb', line 583 def controller @controller end |
Instance Method Details
#after(controller) ⇒ Object
594 595 596 597 598 |
# File 'lib/action_controller/caching.rb', line 594 def after(controller) callback(:after) # Clean up, so that the controller can be collected after this request self.controller = nil end |
#before(controller) ⇒ Object
589 590 591 592 |
# File 'lib/action_controller/caching.rb', line 589 def before(controller) self.controller = controller callback(:before) end |