Skip to content

Commit

Permalink
Use unfrozen version of symbol to string
Browse files Browse the repository at this point in the history
This change makes Ransack compatible with shopify/symbol-fstring since
`Symbol#to_s` will return a frozen string literal.
  • Loading branch information
fauno committed Sep 15, 2020
1 parent c9cc20d commit 99785aa
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 @@ -108,7 +108,7 @@ def groupings=(groupings)
alias :g= :groupings=

def method_missing(method_id, *args)
method_name = method_id.to_s
method_name = method_id.to_s.dup
writer = method_name.sub!(/\=$/, ''.freeze)
if attribute_method?(method_name)
if writer
Expand Down

0 comments on commit 99785aa

Please sign in to comment.