lib/generators/dry_crud/templates/app/controllers/list_controller.rb
def render_with_callbacks(*args, &block)
      options = _normalize_render(*args, &block)
      p options if options[:location] == :back
      callback = "render_#{options[:template]}"
      run_callbacks(callback) if respond_to?(:"_run_#{callback}_callbacks", true)

      render_without_callbacks(*args, &block) unless performed?
    end
# Helper method to run before_render callbacks and render the action.
# If a callback renders or redirects, the action is not rendered.
Helper method to run before_render callbacks and render the action.
If a callback renders or redirects, the action is not rendered.
Helper method to run before_render callbacks and render the action . If a callback renders or redirects the action is not rendered .
def render_with_callbacks(*args, &block)
      options = _normalize_render(*args, &block)
      p options if options[:location] == :back
      callback = "render_#{options[:template]}"
      run_callbacks(callback) if respond_to?(:"_run_#{callback}_callbacks", true)
      render_without_callbacks(*args, &block) unless performed?
    end
def render_with_callbacks ( * args , & block ) options = _normalize_render ( * args , & block ) p options if options [ :location ] == :back callback = "render_#{options[:template]}" run_callbacks ( callback ) if respond_to? ( :" _run_ #{ callback } _callbacks " , true ) render_without_callbacks ( * args , & block ) unless performed? end
Helper method to run before_render callbacks and render the action.
Helper method to run before_render callbacks and render the action .
args
block