diff --git a/CHANGELOG.md b/CHANGELOG.md index dc9bd03..7f8b679 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ - Bump Sidekiq dependency to ~> 2.14.0. - Use ERB templates instead of slim. +- Don't check if `Sidekiq::Web.tabs` is an Array in Sidetiq::Web. 0.3.6 ----- diff --git a/lib/sidetiq/web.rb b/lib/sidetiq/web.rb index de57a58..65bb600 100644 --- a/lib/sidetiq/web.rb +++ b/lib/sidetiq/web.rb @@ -49,10 +49,5 @@ module Sidetiq end Sidekiq::Web.register(Sidetiq::Web) - -if Sidekiq::Web.tabs.is_a?(Array) - Sidekiq::Web.tabs << "sidetiq" -else - Sidekiq::Web.tabs["Sidetiq"] = "sidetiq" -end +Sidekiq::Web.tabs["Sidetiq"] = "sidetiq"