Untitled

mail@pastecode.io avatar
unknown
ruby
12 days ago
403 B
3
Indexable
Never
current_config= WarehouseService.configuration.get("app.b2b.imei_enabled_warehouses")

warehouse_to_remove = "blr_wfld"

updated_config=current_config-[warehouse_to_remove]
puts updated_config
WarehouseService.configuration.update("app.b2b.imei_enabled_warehouses", updated_config, Time.now, nil, nil)

 
c = WarehouseService.configuration.get("app.b2b.imei_enabled_warehouses")
puts c == updated_config
Leave a Comment