summaryrefslogtreecommitdiff
path: root/app/models/sip_account.rb
diff options
context:
space:
mode:
authorStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-03-17 12:44:33 +0100
committerStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-03-17 12:44:33 +0100
commit0ed2894ca7371199788c202b61f53a3f73c4b03b (patch)
tree2526d54ed5b28efe07312ac96895af76e28fb684 /app/models/sip_account.rb
parent5ed3837a8688e46a33d3ad3b0eb0343eb1a5ba85 (diff)
Reduce the push load.
Diffstat (limited to 'app/models/sip_account.rb')
-rw-r--r--app/models/sip_account.rb5
1 files changed, 0 insertions, 5 deletions
diff --git a/app/models/sip_account.rb b/app/models/sip_account.rb
index cea5f0e..930069d 100644
--- a/app/models/sip_account.rb
+++ b/app/models/sip_account.rb
@@ -213,11 +213,6 @@ class SipAccount < ActiveRecord::Base
return states
end
- def non_e164_phone_numbers
- array_of_phone_numbers_as_strings = self.phone_numbers.map{ |phone_number| phone_number.number.to_s }.sort
- self.phone_numbers.where(:number => array_of_phone_numbers_as_strings.select { |phone_number| phone_number[0] != '+' })
- end
-
private
def save_value_of_to_s