fix a problem with bushido_app_claimed? if the variable value is an empty string

This commit is contained in:
did 2011-05-29 15:36:14 -07:00
parent dfb4ed48bc
commit 293557a245

View File

@ -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