I’m having a little trouble with this for some reason.
Can someone tell me why I can do this…
price = Price.find(5)
but not this…
product.prices.each do |p|
At the end of that latter piece of code, product.prices.size still
For the record, I do know about delete_all, there are some
conditionals in my actual code that decide if an object gets deleted
or not. I’m just trying to figure out why my objects aren’t being
destroyed when inside a loop like that.