diff --git a/app/models/client.rb b/app/models/client.rb index 9033ecd5c..774d533e3 100644 --- a/app/models/client.rb +++ b/app/models/client.rb @@ -50,7 +50,6 @@ class Client < ActiveRecord::Base before_create { self.created = Time.zone.now.utc.iso8601 } before_save { self.updated = Time.zone.now.utc.iso8601 } - after_create :set_test_prefix, unless: Proc.new { Rails.env.test? } after_create :send_welcome_email, unless: Proc.new { Rails.env.test? } attr_accessor :target_id @@ -275,10 +274,6 @@ def user_url private - def set_test_prefix - prefixes << cached_prefix_response("10.5072") - end - def set_defaults self.contact_name = "" unless contact_name.present? self.domains = "*" unless domains.present? diff --git a/app/models/provider.rb b/app/models/provider.rb index 05e053998..f31cb5bce 100644 --- a/app/models/provider.rb +++ b/app/models/provider.rb @@ -52,7 +52,6 @@ class Provider < ActiveRecord::Base before_create { self.created = Time.zone.now.utc.iso8601 } before_save { self.updated = Time.zone.now.utc.iso8601 } - after_create :set_test_prefix, unless: Proc.new { Rails.env.test? } after_create :send_welcome_email, unless: Proc.new { Rails.env.test? } accepts_nested_attributes_for :prefixes @@ -266,10 +265,6 @@ def set_region # write_attribute(:provider_type, r) # end - def set_test_prefix - prefixes << cached_prefix_response("10.5072") - end - def set_defaults self.symbol = symbol.upcase if symbol.present? self.is_active = is_active ? "\x01" : "\x00"