def index
      @settings = Setting.by_query(s_params[:query]).ordered_by(s_params[:order_field])
      @number_of_pages = (@settings.count.to_f / settings_per_page).ceil
      @settings = @settings.paginated(s_params[:page], settings_per_page)
      fresh_when(@settings)
    end
def index
      @settings = Setting.by_query(s_params[:query]).ordered_by(s_params[:order_field])
      @number_of_pages = (@settings.count.to_f / settings_per_page).ceil
      @settings = @settings.paginated(s_params[:page], settings_per_page)
      fresh_when(@settings)
    end
rubocop:disable AbcSize