Class: RelinquishmentContact

Inherits:
ActiveRecord::Base
  • Object
show all
Includes:
ActionView::Helpers::NumberHelper, CommonScopes, PublicActivity::Model
Defined in:
app/models/relinquishment_contact.rb

Instance Method Summary collapse

Methods included from CommonScopes

included

Instance Method Details

#formatted_phoneObject


32
33
34
# File 'app/models/relinquishment_contact.rb', line 32

def formatted_phone
  self.phone.blank? ? '' : number_to_phone(self.phone)
end

#modify_phone_numberObject


28
29
30
# File 'app/models/relinquishment_contact.rb', line 28

def modify_phone_number
  self.phone = self.phone.delete('^0-9') unless self.phone.blank?
end

#show_name_label_methodObject


24
25
26
# File 'app/models/relinquishment_contact.rb', line 24

def show_name_label_method
  "#{self.first_name} #{self.last_name}"
end