def set_index_options
        limit              = params[:limit].to_i > 0 ? params[:limit].to_i : nil
        reverse            = params[:reverse].present? ?
                               params[:reverse].to_s.to_boolean(false) : nil
        with_group_members = params[:with_group_members].present? || params[:without_grouping].present? ?
                               params[:with_group_members].to_s.to_boolean(false) || params[:without_grouping].to_s.to_boolean(false) : nil
        @index_options     = params.permit(:filter, :filtered_by_type, :filtered_by_group_type, :filtered_by_group_id, :filtered_by_key, :routing_scope, :devise_default_routes)
                                   .to_h.symbolize_keys
                                   .merge(limit: limit, reverse: reverse, with_group_members: with_group_members)
      end
def set_index_options
        limit              = params[:limit].to_i > 0 ? params[:limit].to_i : nil
        reverse            = params[:reverse].present? ?
                               params[:reverse].to_s.to_boolean(false) : nil
        with_group_members = params[:with_group_members].present? || params[:without_grouping].present? ?
                               params[:with_group_members].to_s.to_boolean(false) || params[:without_grouping].to_s.to_boolean(false) : nil
        @index_options     = params.permit(:filter, :filtered_by_type, :filtered_by_group_type, :filtered_by_group_id, :filtered_by_key, :routing_scope, :devise_default_routes)
                                   .to_h.symbolize_keys
                                   .merge(limit: limit, reverse: reverse, with_group_members: with_group_members)
      end
Sets options to load notification index from request parameters.
 @api protected
 @return [Hash] options to load notification index