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:
parent
13bcd9a1f8
commit
2c17cfafed
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user