Skip to content
This repository has been archived by the owner on Apr 17, 2018. It is now read-only.

Commit

Permalink
Updated Collection#reload to use DM::Undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
dkubb committed Jul 28, 2010
1 parent 9279f9e commit 0059df2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/dm-core/collection.rb
Expand Up @@ -65,9 +65,9 @@ def model
# @return [self]
#
# @api public
def reload(other_query = nil)
def reload(other_query = Undefined)
query = self.query
query = other_query.nil? ? query.dup : query.merge(other_query)
query = other_query.equal?(Undefined) ? query.dup : query.merge(other_query)

# make sure the Identity Map contains all the existing resources
identity_map = repository.identity_map(model)
Expand Down

0 comments on commit 0059df2

Please sign in to comment.