Module: EnoughWithTheDoubleRenderAlready
- Defined in:
- lib/enough_with_the_double_render_already.rb
Defined Under Namespace
Modules: ThrowOnRenderOrRedirect
Class Method Summary collapse
Class Method Details
.extended(by_controller_class) ⇒ Object
2 3 4 5 6 7 |
# File 'lib/enough_with_the_double_render_already.rb', line 2 def self.extended(by_controller_class) by_controller_class.around_action do |controller, action_block| catch(:__rendered_or_redirected__) { action_block.call } end by_controller_class.prepend(ThrowOnRenderOrRedirect) end |