Permalink
Browse files

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

  • Loading branch information...
1 parent bbc0124 commit 49810da8591afec940228a2a7b677490210d758b @serebryakov serebryakov committed May 28, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/lib/scope/loader.rb
View
@@ -39,7 +39,7 @@ def has_id?
def from(adapter_or_collection, options = {})
if adapter_or_collection.kind_of? Array
@loaded = true
- @objects = adapter_or_collection.select do |instance|
+ adapter_or_collection.select do |instance|
@conditions.matches?(instance)
end.each do |instance|
@objects << instance.properties

0 comments on commit 49810da

Please sign in to comment.