Changeset [e5df3f6a58ae7e591f188359e33984fbccea9cfd] by Bernerd Schaefer

October 31st, 2008 @ 10:26 PM

Updated Query#update's field mergining logic.

Now Query#update only replaces the existing @fields if they are
the defaults for the model's property set. This lets DM load
missing non-lazy attributes excluded from the original :fields
list.

This resolves #626.
http://github.com/datamapper/dm-core/commit/e5df3f6a58ae7e591f18835...

Committed by Bernerd Schaefer

  • M lib/dm-core/query.rb
  • M spec/unit/query_spec.rb
New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »