lib/generators/dry_crud/templates/app/controllers/list_controller.rb
# Adds the :remember_params class attribute and a before filter to the index action.
Adds the :remember_params class attribute and a before filter to the index action.
Adds the : remember_params class attribute and a before filter to the index action .
def restore_params_on_return(remembered)
      if params[:returning]
        remember_params.each {|p| params[p] ||= remembered[p] }
      end
    end
def restore_params_on_return ( remembered ) if params [ :returning ] remember_params . each { | p | params [ p ] ||= remembered [ p ] } end end
Adds the :remember_params class attribute and a before filter to the index action.
Adds the : remember_params class attribute and a before filter to the index action .
remembered