Permalink
Browse files

fix a problem with bushido_app_claimed? if the variable value is an e…

…mpty string
  • Loading branch information...
1 parent dfb4ed4 commit 293557a245fa0ce09464887ac229045408f1d4f9 @did did committed May 29, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/locomotive/hosting/bushido.rb
View
2 lib/locomotive/hosting/bushido.rb
@@ -26,7 +26,7 @@ def bushido?
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

0 comments on commit 293557a

Please sign in to comment.