lib/update_db.rb code should be moved to the "synchronize" methods of app/models/provisioningobject.rb and its dependent models (customer/site/user), since it contains too many if-clauses that depend on the provisioningobject type (customer/site/user).
E.g. code that is valid only for "customers" should reside in the customer.rb file.
lib/update_db.rb code should be moved to the "synchronize" methods of app/models/provisioningobject.rb and its dependent models (customer/site/user), since it contains too many if-clauses that depend on the provisioningobject type (customer/site/user).
E.g. code that is valid only for "customers" should reside in the customer.rb file.