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

View File

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