Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

remove unused one param

  • Loading branch information...
commit 2ce191bc432db49e751f0f6c68ac7e3ce3ccf869 1 parent 601a9f6
@flyerhzm authored
Showing with 6 additions and 6 deletions.
  1. +6 −6 lib/mongoid-eager-loading/mongoid/criterion/eager_loading.rb
View
12 lib/mongoid-eager-loading/mongoid/criterion/eager_loading.rb
@@ -37,17 +37,17 @@ def association_reflection(document_class, eager_loading)
def setup_associations(documents, reflection)
case reflection.macro
when :references_one
- setup_associations_with_ids(documents, reflection, true)
+ setup_associations_with_ids(documents, reflection)
when :references_many
- setup_associations_with_ids(documents, reflection, false)
+ setup_associations_with_ids(documents, reflection)
when :references_and_referenced_in_many
- setup_associations_with_foreign_keys(documents, reflection, false)
+ setup_associations_with_foreign_keys(documents, reflection)
when :referenced_in
- setup_associations_with_foreign_keys(documents, reflection, true)
+ setup_associations_with_foreign_keys(documents, reflection)
end
end
- def setup_associations_with_ids(documents, reflection, one=true)
+ def setup_associations_with_ids(documents, reflection)
ids = association_ids(documents, reflection)
ignore_includes
@@ -59,7 +59,7 @@ def setup_associations_with_ids(documents, reflection, one=true)
assign_associations(documents, reflection)
end
- def setup_associations_with_foreign_keys(documents, reflection, one)
+ def setup_associations_with_foreign_keys(documents, reflection)
ids = association_ids(documents, reflection)
ignore_includes
Please sign in to comment.
Something went wrong with that request. Please try again.