-
-
Save epochwolf/a19133e6659edb8c9d35 to your computer and use it in GitHub Desktop.
This file contains 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
ACORD_CODES = {} | |
# Load acord codes from a fixture into memory | |
require 'csv' | |
CSV.foreach(File.join(Rails.root, 'db/acord_codes.csv'), headers: true) do |row| | |
ACORD_CODES[row[0]] ||= {} | |
ACORD_CODES[row[0]][row[1]] = row[2] | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment