summaryrefslogtreecommitdiff
path: root/app/models
diff options
context:
space:
mode:
authorJulian Pawlowski <julian.pawlowski@gmail.com>2013-02-19 10:00:15 +0100
committerJulian Pawlowski <julian.pawlowski@gmail.com>2013-02-19 10:00:15 +0100
commit804814c97448d3381cfc691694692362df6ab906 (patch)
tree95233874b048bbddb54fbb2dd498ce5913bc8ff0 /app/models
parentcdc7f100e396824410267339a1fe00b759da8f83 (diff)
parentde845aa642e22b0ae08c5ce991bcdef9b656e079 (diff)
Merge branch 'develop' of https://github.com/amooma/GS5 into develop
Diffstat (limited to 'app/models')
-rw-r--r--app/models/phone_book_entry.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/models/phone_book_entry.rb b/app/models/phone_book_entry.rb
index 275c7b6..96c8468 100644
--- a/app/models/phone_book_entry.rb
+++ b/app/models/phone_book_entry.rb
@@ -1,6 +1,8 @@
# encoding: UTF-8
class PhoneBookEntry < ActiveRecord::Base
+ PHONE_NUMBER_NAMES = ['Phone', 'Office', 'Home', 'Mobile', 'Fax']
+
before_save :run_phonetic_algorithm
before_save :save_value_of_to_s