mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
freeze string
This commit is contained in:
parent
285cba022c
commit
2396f79fec
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue