Skip to content

Commit

Permalink
Fix Yaml loading
Browse files Browse the repository at this point in the history
  • Loading branch information
dwilkie committed Sep 3, 2024
1 parent 14c3b0c commit 9afc4ed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/services/config/app_settings.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
default: &default
region_data: "<%= ENV.fetch('REGION_DATA', '{}') %>"
region_data: '<%= ENV.fetch("REGION_DATA", "{}") %>'
stub_regions: false

production: &production
Expand Down
2 changes: 1 addition & 1 deletion components/services/config/initializers/somleng_regions.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require "json"

SomlengRegions.configure do |config|
config.region_data = JSON.parse(AppSettings.fetch(:region_data))
config.region_data = AppSettings.fetch(:region_data)
config.stub_regions = AppSettings.fetch(:stub_regions)
end

0 comments on commit 9afc4ed

Please sign in to comment.