mirror of
https://github.com/internetee/registry.git
synced 2025-08-06 01:35:10 +02:00
Add countries gem
This commit is contained in:
parent
864c451a61
commit
6aaf89593e
5 changed files with 17 additions and 5 deletions
|
@ -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 = [], []
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue