lib/sidekiq/web/helpers.rb in sidekiq-6.2.2 vs lib/sidekiq/web/helpers.rb in sidekiq-6.3.0

- old
+ new

@@ -68,21 +68,10 @@ def display_custom_head @head_html.join if defined?(@head_html) end - def poll_path - if current_path != "" && params["poll"] - path = root_path + current_path - query_string = to_query_string(params.slice(*params.keys - %w[page poll])) - path += "?#{query_string}" unless query_string.empty? - path - else - "" - end - end - def text_direction get_locale["TextDirection"] || "ltr" end def rtl? @@ -201,10 +190,10 @@ def parse_params(params) score, jid = params.split("-", 2) [score.to_f, jid] end - SAFE_QPARAMS = %w[page poll direction] + SAFE_QPARAMS = %w[page direction] # Merge options with current params, filter safe params, and stringify to query string def qparams(options) stringified_options = options.transform_keys(&:to_s)