update license activate

This commit is contained in:
NyanLinHtut
2020-01-22 10:17:30 +06:30
parent d054776357
commit 35e84d9b62
7 changed files with 295 additions and 259 deletions

View File

@@ -1,6 +1,8 @@
if File.exist?("config/license.yml")
config = YAML.load_file(Rails.root.join("config/license.yml"))
config.fetch(Rails.env, {}).each do |key, value|
ENV[key.upcase] = value.to_s
if config
config.fetch(Rails.env, {}).each do |key, value|
ENV[key.upcase] = value.to_s
end
end
end