refactor the bushido_app_claimed? method by using Boolean.set (more reliable)
This commit is contained in:
parent
293557a245
commit
1d08277231
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user