Skip to content

Commit

Permalink
remove unused one param
Browse files Browse the repository at this point in the history
  • Loading branch information
flyerhzm committed Jan 24, 2011
1 parent 601a9f6 commit 2ce191b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/mongoid-eager-loading/mongoid/criterion/eager_loading.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 2ce191b

Please sign in to comment.