Class: Trebuchet::ActionControllerFilter
- Inherits:
-
Object
- Object
- Trebuchet::ActionControllerFilter
- Defined in:
- lib/trebuchet/action_controller_filter.rb
Class Method Summary collapse
Class Method Details
.after(controller) ⇒ Object
15 16 17 18 |
# File 'lib/trebuchet/action_controller_filter.rb', line 15 def self.after(controller) Trebuchet.current_block = nil Trebuchet.reset_current! # very important end |
.before(controller) ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 |
# File 'lib/trebuchet/action_controller_filter.rb', line 3 def self.before(controller) Trebuchet.initialize_logs if Trebuchet.backend.respond_to?(:refresh) Trebuchet.backend.refresh end Trebuchet.current_block = Proc.new { Trebuchet.new(controller.send(:current_user), controller.request) } end |