Use String#+@ before mutating the result of Symbol#to_s
This commit is contained in:
parent
ffc4e6c17c
commit
c43419b5b9
|
@ -108,7 +108,7 @@ module Ransack
|
|||
alias :g= :groupings=
|
||||
|
||||
def method_missing(method_id, *args)
|
||||
method_name = method_id.to_s.dup
|
||||
method_name = +method_id.to_s
|
||||
writer = method_name.sub!(/\=$/, ''.freeze)
|
||||
if attribute_method?(method_name)
|
||||
if writer
|
||||
|
|
Loading…
Reference in New Issue