@@ -59,7 +59,7 @@ class ConfigLoader
|
||||
end
|
||||
|
||||
def save_as_new_config(latest)
|
||||
config = InstallationConfig.find_or_create_by(name: latest[:name])
|
||||
config = InstallationConfig.find_or_initialize_by(name: latest[:name])
|
||||
config.value = latest[:value]
|
||||
config.locked = latest[:locked]
|
||||
config.save!
|
||||
|
||||
Reference in New Issue
Block a user