fanforce-app-factory 2.0.0.rc31 → 2.0.0.rc32
Sign up to get free protection for your applications and to get access to all the features.
@@ -22,7 +22,7 @@ class Fanforce::App::Sinatra
|
|
22
22
|
new_config = MultiJson.load(params[:config], symbolize_keys: true)
|
23
23
|
raise 'IUIDs do not match' if old_config[:_iuid] and old_config[:_iuid] != new_config[:_iuid]
|
24
24
|
|
25
|
-
File.open(filename, 'w') {|f| f.write(JSON.pretty_generate(Hash[new_config.sort])) }
|
25
|
+
File.open(filename, 'w') {|f| f.write(JSON.pretty_generate(Hash[new_config.sort]) + $RS) }
|
26
26
|
json status: 'finished'
|
27
27
|
end
|
28
28
|
|