We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1a18feb commit b5e2d5bCopy full SHA for b5e2d5b
1 file changed
lib/free_zipcode_data/db_table.rb
@@ -24,7 +24,11 @@ def update_progress
24
private
25
26
def country_lookup_table
27
- @country_lookup_table ||= YAML.load_file('country_lookup_table.yml')
+ @country_lookup_table ||=
28
+ begin
29
+ path = File.expand_path('../../country_lookup_table.yml', __dir__)
30
+ YAML.load_file(path)
31
+ end
32
end
33
34
def select_first(sql)
0 commit comments