I setup 3 models such as A,B,C
A has_many B
B belongs_to A
B has_many C
C belongs_to B
I found when I use C.update, then B and A also would be updated.
How to stop this affect,is there an option ?
I setup 3 models such as A,B,C
A has_many B
B belongs_to A
B has_many C
C belongs_to B
I found when I use C.update, then B and A also would be updated.
How to stop this affect,is there an option ?
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs