Created
December 22, 2017 09:33
-
-
Save rndev15/c7341848f887c47a1c5171f94b8c32d4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Я бы это всё сделал параметрами.
И не привязывался бы к рельсам.