Class: Phone

Inherits:
ActiveRecord::Base
  • Object
show all
Includes:
ActionView::Helpers::NumberHelper
Defined in:
app/models/phone.rb

Overview

Schema Information

Table name: phones

id             :integer(4)      not null, primary key
phone_type_id  :integer(4)
number         :string(255)     not null
phoneable_type :string(255)     not null
phoneable_id   :integer(4)      not null
primary        :boolean(1)      default(FALSE)
created_at     :datetime
updated_at     :datetime

Instance Method Summary (collapse)

Instance Method Details

- (Object) display_number



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

def display_number
  number_to_phone( self.number )
end

- (Object) display_number=(val)



29
30
31
# File 'app/models/phone.rb', line 29

def display_number=(val)
  self.number = val
end