def redirect_notice(record = nil)
      { notice: I18n.t("crud.notices.#{action_name}", model: helpers.t_model,
        record: record.present? ? "#{record} " : '') }
    end
def redirect_notice(record = nil)
      { notice: I18n.t("crud.notices.#{action_name}", model: helpers.t_model,
        record: record.present? ? "#{record} " : '') }
    end
returns a redirect notice for create, update and destroy actions

 Example in ClientsController:
   redirect_to some_path, redirect_notice           # => 'Klient geändert.'
   redirect_to some_path, redirect_notice(@client)  # => 'Klient Example Client geändert.'