Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed minor bug in Scope::Loader when loading from collection

  • Loading branch information...
commit 49810da8591afec940228a2a7b677490210d758b 1 parent bbc0124
Alex Serebryakov serebryakov authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  lib/lib/scope/loader.rb
2  lib/lib/scope/loader.rb
@@ -39,7 +39,7 @@ def has_id?
39 39 def from(adapter_or_collection, options = {})
40 40 if adapter_or_collection.kind_of? Array
41 41 @loaded = true
42   - @objects = adapter_or_collection.select do |instance|
  42 + adapter_or_collection.select do |instance|
43 43 @conditions.matches?(instance)
44 44 end.each do |instance|
45 45 @objects << instance.properties

0 comments on commit 49810da

Please sign in to comment.
Something went wrong with that request. Please try again.