1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-01-29 18:52:22 +01:00

initialize phoneRequired from env

This commit is contained in:
Sylvain 2020-05-13 15:54:25 +02:00
parent 13bcd9a1f8
commit 2c17cfafed

View File

@ -927,7 +927,7 @@ end
unless Setting.find_by(name: 'phone_required').try(:value)
setting = Setting.find_or_initialize_by(name: 'phone_required')
setting.value = 'true'
setting.value = ENV.fetch('PHONE_REQUIRED', 'true')
setting.save
end