From 03975ed2ce3f203a98b1a4918197de65084499bd Mon Sep 17 00:00:00 2001 From: Tobias Svensson Date: Tue, 27 Aug 2013 11:29:34 +0100 Subject: [PATCH] Don't check if `Sidekiq::Web.tabs` is an Array in Sidetiq::Web. --- CHANGELOG.md | 1 + lib/sidetiq/web.rb | 7 +------ 2 files changed, 2 insertions(+), 6 deletions(-) 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"