From 293557a245fa0ce09464887ac229045408f1d4f9 Mon Sep 17 00:00:00 2001 From: did Date: Sun, 29 May 2011 15:36:14 -0700 Subject: [PATCH] fix a problem with bushido_app_claimed? if the variable value is an empty string --- 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 441c6560..fa11d805 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'] && ENV['BUSHIDO_CLAIMED'].to_s.downcase == 'true' + ENV['BUSHIDO_CLAIMED'].present? && ENV['BUSHIDO_CLAIMED'].to_s.downcase == 'true' end def enable_bushido