Skip to content

Commit

Permalink
Allow nested method longhands to be passed
Browse files Browse the repository at this point in the history
TODO
  • Loading branch information
mhssmnn authored Jul 5, 2023
1 parent 4b036f0 commit 26a9091
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 @@ -149,7 +149,7 @@ def new_grouping(params = {})
def build(params)
params.with_indifferent_access.each do |key, value|
case key
when /^(g|c|m)$/
when /^(g|c|m|groupings|conditions|combinator)$/
self.send("#{key}=", value)
else
write_attribute(key.to_s, value)
Expand Down

0 comments on commit 26a9091

Please sign in to comment.