This may be a rails bug, but I can't figure out how to do attribute overrides for the attribute created for a belongs_to relationship
I have a simple relationship:
User belongs_to Domain
User has a property email_address which I want to update if Domain is ever changed
I tried in User
but now the ability to assign new domains is totally broken and no longer works (simply nothing happens)...
I suspect that this needs some magic reflection hacking, but can someone set me on the right path to figure out how to work around it. Basically I want to just intercept the update call and run some custom code to update the User model.
Grateful for some ideas