Module: Aikido::Zen::Sinks::ActionController::Extensions
- Defined in:
- lib/aikido/zen/sinks/action_controller.rb
Instance Method Summary collapse
Instance Method Details
#run_callbacks(kind) ⇒ Object
49 50 51 52 53 54 55 56 57 58 |
# File 'lib/aikido/zen/sinks/action_controller.rb', line 49 def run_callbacks(kind, *) return super unless kind == :process_action super do rate_limiter = Aikido::Zen::Sinks::ActionController.throttler throttled = rate_limiter.throttle(self) yield if block_given? && !throttled end end |