oveits / ProvisioningEngine

Ruby on Rails based ProvisioningEngine Frontend for provisioning of legacy systems via Apache Camel Backend (SOAP/XML+SPML+File import)
3 stars 6 forks source link

lib/update_db.rb replacement by "synchronize" methods #2

Open oveits opened 8 years ago

oveits commented 8 years ago

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.