Skip to content

Commit

Permalink
Fix ransack_alias issue, close #1239
Browse files Browse the repository at this point in the history
  • Loading branch information
itsalongstory committed Aug 1, 2024
1 parent 87c8936 commit 5cc98a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ransack/nodes/grouping.rb
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def [](key)
end

def []=(key, value)
conditions.reject! { |c| c.key == key.to_s }
conditions.reject! { |c| c.key == key.to_s && c.value == value.value }
self.conditions << value
end

Expand Down

0 comments on commit 5cc98a5

Please sign in to comment.