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 12, 2024
1 parent 2d56e78 commit a0af78f
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 a0af78f

Please sign in to comment.