While trying ro resolve my previous question, I faced with an interesting thing that I do not understand: I had an ActiveRecord
object restream
that references to another object provider
. At the end I faced with the thing that restream.update_attributes(provider: new_provider)
do not save anything until I make restream.reload.update_attributes(provider: new_provider)
.
Why does it work so and can't save the object without reloading it? Is it somehow connected with that restream
could be changed in some other thread?
One more thing is that no errors are added by restream.update_attributes(provider: new_provider)
. If it can't update a record, why does it keeps silent?
Thanx!