Add countries gem

This commit is contained in:
Martin Lensment 2015-02-02 11:29:48 +02:00
parent 864c451a61
commit 6aaf89593e
5 changed files with 17 additions and 5 deletions

View file

@ -8,10 +8,13 @@ class Address < ActiveRecord::Base
]
belongs_to :contact
belongs_to :country_deprecated, foreign_key: "country_id"
has_paper_trail class_name: 'AddressVersion'
def country
Country.new(country_code)
end
class << self
# def validate_postal_info_types(parsed_frame)
# errors, used = [], []