Created
May 18, 2009 19:15
-
-
Save dbussink/113679 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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