Module: PersonName::ActiveRecord::Core::InstanceMethods

Defined in:
lib/person_name.rb

Instance Method Summary collapse

Instance Method Details

#person_name_for(field) ⇒ Object



63
64
65
66
# File 'lib/person_name.rb', line 63

def person_name_for field
	@person_names ||= {}
	@person_names[field] ||= PersonName::Name.new(field, self)
end

#set_person_name_for(field, new_name) ⇒ Object



68
69
70
# File 'lib/person_name.rb', line 68

def set_person_name_for field, new_name
	person_name_for(field).full_name = new_name
end