lib/generators/dry_crud/templates/app/controllers/list_controller.rb
# Defines before callbacks for the render actions.
Defines before callbacks for the render actions.
Defines before callbacks for the render actions .
def define_render_callbacks(*actions)
        args = actions.collect {|a| :"render_#{a}" }
        args << {:only => :before,
                 :terminator => "result == false || performed?"}
        define_model_callbacks *args
      end
def define_render_callbacks ( * actions ) args = actions . collect { | a | :" render_ #{ a } " } args << { :only => :before , :terminator => "result == false || performed?" } define_model_callbacks * args end
Defines before callbacks for the render actions.
Defines before callbacks for the render actions .
actions