1
0
Fork 0
mirror of https://github.com/mperham/sidekiq.git synced 2022-11-09 13:52:34 -05:00

Merge pull request #2662 from andrew/patch-1

Remove nil qparams to avoid extra & in url generation
This commit is contained in:
Mike Perham 2015-11-15 16:26:44 -06:00
commit c0b15eb107

View file

@ -160,7 +160,7 @@ module Sidekiq
options = options.stringify_keys
params.merge(options).map do |key, value|
SAFE_QPARAMS.include?(key) ? "#{key}=#{value}" : next
end.join("&")
end.compact.join("&")
end
def truncate(text, truncate_after_chars = 2000)