Skip to content

Commit

Permalink
πŸ’„[skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
jonatack committed Sep 24, 2015
1 parent 45e5c2f commit 320cd95
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/ransack/adapters/active_record/context.rb
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def join_associations
"ActiveRecord 4.1 and later does not use join_associations. Use join_sources."
end

# All dependent Arel::Join nodes used in the search query
# All dependent Arel::Join nodes used in the search query.
#
# This could otherwise be done as `@object.arel.join_sources`, except
# that ActiveRecord's build_joins sets up its own JoinDependency.
Expand All @@ -109,7 +109,7 @@ def join_sources

else

# All dependent JoinAssociation items used in the search query
# All dependent JoinAssociation items used in the search query.
#
# Deprecated: this goes away in ActiveRecord 4.1. Use join_sources.
#
Expand Down Expand Up @@ -282,7 +282,7 @@ def build_or_find_association(name, parent = @base, klass = nil)
:build,
Polyamorous::Join.new(name, @join_type, klass),
parent
)
)
found_association = @join_dependency.join_associations.last
# Leverage the stashed association functionality in AR
@object = @object.joins(found_association)
Expand Down

0 comments on commit 320cd95

Please sign in to comment.