Skip to content

Instantly share code, notes, and snippets.

@romkaspb
Created December 22, 2017 09:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save romkaspb/c7341848f887c47a1c5171f94b8c32d4 to your computer and use it in GitHub Desktop.
Save romkaspb/c7341848f887c47a1c5171f94b8c32d4 to your computer and use it in GitHub Desktop.
module Geonames
ARCHIVES = ['allCountries.zip', 'alternateNames.zip'].freeze
TARGET_DIR = Rails.root.join('tmp').freeze
FILES = Hash[ARCHIVES.collect { |a| [a, File.join(TARGET_DIR, a)] }].freeze
end
@smaximov
Copy link

Я бы это всё сделал параметрами.

И не привязывался бы к рельсам.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment