Module: DryCrud::Rememberable

Extended by:
ActiveSupport::Concern
Included in:
ListController
Defined in:
app/controllers/dry_crud/rememberable.rb

Overview

Remembers certain params of the index action in order to return to the same list after an entry was viewed or edited. If the index is called with a param :returning, the remembered params will be re-used to present the user the same list as she left it.

Define a list of param keys that should be remembered for the list action with the class attribute remember_params.

The params are stored separately for each different remember_key, which defaults to the current request’s path.