From 838cb6d10f240bd694ff672f90a48801791e36bf Mon Sep 17 00:00:00 2001 From: f Date: Tue, 15 Sep 2020 11:23:48 -0300 Subject: [PATCH] Use unfrozen version of symbol to string This change makes Ransack compatible with shopify/symbol-fstring since `Symbol#to_s` will return a frozen string literal. --- lib/ransack/nodes/grouping.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ransack/nodes/grouping.rb b/lib/ransack/nodes/grouping.rb index 15c1c95a7..38d794df0 100644 --- a/lib/ransack/nodes/grouping.rb +++ b/lib/ransack/nodes/grouping.rb @@ -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