charlesbaynham / wurwolves

2 stars 0 forks source link

Refactor change detection in db_scoped wrapper #120

Open charlesbaynham opened 3 years ago

charlesbaynham commented 3 years ago

The current logic is very fragile: any SELECT can flush the session, causing it to look clean. I shouldn't be using .dirty to detect changes as I am and it's probably causing problems with updates.