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)
482 483 484 485 |
# File 'lib/action_controller/caching.rb', line 482 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.
462 463 464 |
# File 'lib/action_controller/caching.rb', line 462 def controller @controller end |
Instance Method Details
#after(controller) ⇒ Object
469 470 471 |
# File 'lib/action_controller/caching.rb', line 469 def after(controller) callback(:after) end |
#before(controller) ⇒ Object
464 465 466 467 |
# File 'lib/action_controller/caching.rb', line 464 def before(controller) self.controller = controller callback(:before) end |