FBI-2182
Web Entry 2.0 User field Improvements request
This commit is contained in:
committed by
davidcallizaya
parent
0d294b0da7
commit
79b907f4a2
6
Rakefile
6
Rakefile
@@ -139,10 +139,10 @@ def generateEnviromentVariables()
|
||||
puts "Creating System Constants..."
|
||||
content = "var __env = __env || {};"
|
||||
file = File.read('./config/enviromentvariables.json')
|
||||
data_hash = JSON.parse(file)
|
||||
content = content + "__env.USER_GUEST = " + JSON.generate(data_hash['constants']['userguest'])
|
||||
dataUser = JSON.parse(file)
|
||||
content = content + "__env.USER_GUEST = " + JSON.generate(dataUser['constants']['userguest'])
|
||||
dir = "vendor/colosa/MichelangeloFE/src/enviroment/"
|
||||
File.open(dir +'constans.js', 'w') { |fileWrite|
|
||||
File.open(dir +'constants.js', 'w') { |fileWrite|
|
||||
fileWrite.write content + ';'
|
||||
}
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user