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

Commit

Permalink
Revert "This fixes lighthouse#1475, results incorrectly marked as imm…
Browse files Browse the repository at this point in the history
…utable"
  • Loading branch information
tpitale committed May 24, 2016
1 parent 33be2ac commit b30017e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/dm-core/model.rb
Expand Up @@ -593,8 +593,7 @@ def load(records, query)
model = discriminator && discriminator.load(record[discriminator]) || self
model_key = model.key(repository_name)

key_values = model_key.zip(record.values_at(*model_key)).map { |k,v| k.load(v) }
resource = if model_key.valid?(key_values)
resource = if model_key.valid?(key_values = record.values_at(*model_key))
identity_map = repository.identity_map(model)
identity_map[key_values]
end
Expand Down

0 comments on commit b30017e

Please sign in to comment.