Module: DryCrud::RenderCallbacks::ClassMethods
- Defined in:
- app/controllers/dry_crud/render_callbacks.rb
Overview
Class methods for callbacks.
Instance Method Summary collapse
-
#define_render_callbacks(*actions) ⇒ Object
Defines before callbacks for the render actions.
Instance Method Details
#define_render_callbacks(*actions) ⇒ Object
Defines before callbacks for the render actions.
43 44 45 46 47 |
# File 'app/controllers/dry_crud/render_callbacks.rb', line 43 def define_render_callbacks(*actions) args = actions.map { |a| :"render_#{a}" } args << { only: :before, terminator: render_callback_terminator } define_model_callbacks(*args) end |