From 1d08277231a400061b1a1eb6c38be15bae45f86a Mon Sep 17 00:00:00 2001 From: did Date: Sun, 29 May 2011 15:58:02 -0700 Subject: [PATCH] refactor the bushido_app_claimed? method by using Boolean.set (more reliable) --- lib/locomotive/hosting/bushido.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/locomotive/hosting/bushido.rb b/lib/locomotive/hosting/bushido.rb index fa11d805..6892ab5b 100644 --- a/lib/locomotive/hosting/bushido.rb +++ b/lib/locomotive/hosting/bushido.rb @@ -26,7 +26,7 @@ module Locomotive end def bushido_app_claimed? - ENV['BUSHIDO_CLAIMED'].present? && ENV['BUSHIDO_CLAIMED'].to_s.downcase == 'true' + Boolean.set(ENV['BUSHIDO_CLAIMED']) || false end def enable_bushido