lib/realogy/app/models/realogy/entity.rb in realogy-0.3.1 vs lib/realogy/app/models/realogy/entity.rb in realogy-0.3.2

- old
+ new

@@ -15,10 +15,11 @@ @object.populate if @object.needs_updating? end def populate call = ["get_", self.class.to_s.downcase.split("::").last, "_by_id"].join.to_sym - self.data = Realogy::DataSync.client.__send__(call, self.entity_id) + result = Realogy::DataSync.client.__send__(call, self.entity_id) + self.data = result unless result.blank? self.save if self.changed? end end