1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

freeze string

This commit is contained in:
shotat 2017-06-14 17:49:54 +09:00
parent 285cba022c
commit 2396f79fec

View file

@ -42,7 +42,7 @@ module ActiveModel
end
def _assign_attribute(k, v)
setter = "#{k}="
setter = "#{k}=".freeze
if respond_to?(setter)
public_send(setter, v)
else