Add address processing to contact model

#251
This commit is contained in:
Artur Beljajev 2016-12-02 00:21:52 +02:00
parent fb584778fd
commit e4ae71b308
2 changed files with 37 additions and 0 deletions

View file

@ -257,6 +257,20 @@ class Contact < ActiveRecord::Base
def emails
pluck(:email)
end
def address_processing
Setting.address_processing
end
def address_attributes
%i(
city
street
zip
country_code
state
)
end
end
def roid