Skip to content

Commit

Permalink
don't automatically add test prefix for new client or provider. #124
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Fenner committed Oct 23, 2018
1 parent 4cd652d commit eab5857
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
5 changes: 0 additions & 5 deletions app/models/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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?
Expand Down
5 changes: 0 additions & 5 deletions app/models/provider.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit eab5857

Please sign in to comment.