Class: ActionController::Caching::Sweeper
- Inherits:
-
ActiveRecord::Observer
- Object
- ActiveRecord::Observer
- ActionController::Caching::Sweeper
- 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)
539 540 541 542 |
# File 'lib/action_controller/caching.rb', line 539 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.
519 520 521 |
# File 'lib/action_controller/caching.rb', line 519 def controller @controller end |
Instance Method Details
#after(controller) ⇒ Object
526 527 528 |
# File 'lib/action_controller/caching.rb', line 526 def after(controller) callback(:after) end |
#before(controller) ⇒ Object
521 522 523 524 |
# File 'lib/action_controller/caching.rb', line 521 def before(controller) self.controller = controller callback(:before) end |