Skip to content

Instantly share code, notes, and snippets.

@dbussink
Created May 18, 2009 19:15
Show Gist options
  • Save dbussink/113679 to your computer and use it in GitHub Desktop.
Save dbussink/113679 to your computer and use it in GitHub Desktop.
diff --git a/lib/dm-core/collection.rb b/lib/dm-core/collection.rb
index c62dd9e..73a83fa 100644
--- a/lib/dm-core/collection.rb
+++ b/lib/dm-core/collection.rb
@@ -80,7 +80,7 @@ module DataMapper
end
properties = model.properties(repository.name)
- fields = properties.key | [ properties.discriminator ].compact | self.query.fields | query.fields
+ fields = properties.key | [ properties.discriminator ].compact | query.fields
# replace the list of resources
replace(all(query.update(:fields => fields, :reload => true)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment