Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/ransack/adapters/active_record/context.rb
Original file line number Diff line number Diff line change
Expand Up @@ -212,9 +212,9 @@ def extract_correlated_key(join_root)
end
when Arel::Nodes::Equality
pk = primary_key
if join_root.left == pk
if join_root.left.eql?(pk)
join_root.right
elsif join_root.right == pk
elsif join_root.right.eql?(pk)
join_root.left
else
nil
Expand Down