refactor the bushido_app_claimed? method by using Boolean.set (more reliable)

This commit is contained in:
did 2011-05-29 15:58:02 -07:00
parent 293557a245
commit 1d08277231
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ module Locomotive
end end
def bushido_app_claimed? def bushido_app_claimed?
ENV['BUSHIDO_CLAIMED'].present? && ENV['BUSHIDO_CLAIMED'].to_s.downcase == 'true' Boolean.set(ENV['BUSHIDO_CLAIMED']) || false
end end
def enable_bushido def enable_bushido