Question… if i’ve got a one-to-one relationship between Assets and
Tags (simple example), and I do:
a = Asset.find 1, :include => :tag
I can do “a.tag” without hitting the database again. But “a.tag.asset”
instantiates a new Asset object, with a new database query… even
though it’s a reference back to the original object. Now I’ve got two
instances of the same object, which could be confusing.
Is there a way to make ActiveRecord “smart” enough to know that an
instance of a given record is already initialized?