Update customer.rb

This commit is contained in:
2016-04-29 08:29:29 -04:00
parent ebf0177dd7
commit ab6851ff2b

View File

@@ -107,14 +107,15 @@ class Customer < ActiveRecord::Base
# init details
def get_details
Thread.new {
if self.id
@details = get_customer(self.id)
end
}
end
# update's the customers name if updated
def update
Thread.new {
begin
if not self.name == @detils.display_name
self.name = @details.display_name
@@ -123,7 +124,6 @@ class Customer < ActiveRecord::Base
rescue
return nil
end
}
end
end