diff options
author | shotat <shotat@users.noreply.github.com> | 2017-06-14 17:49:54 +0900 |
---|---|---|
committer | shotat <shotat@users.noreply.github.com> | 2017-06-14 17:49:54 +0900 |
commit | 2396f79fec607657b61eef329a98c4debcaa88c7 (patch) | |
tree | 2ee89d1da942405147dade9824c869a6d1490bf5 /activemodel/lib | |
parent | 285cba022ce37977f977376a20ca866197ef33bd (diff) | |
download | rails-2396f79fec607657b61eef329a98c4debcaa88c7.tar.gz rails-2396f79fec607657b61eef329a98c4debcaa88c7.tar.bz2 rails-2396f79fec607657b61eef329a98c4debcaa88c7.zip |
freeze string
Diffstat (limited to 'activemodel/lib')
-rw-r--r-- | activemodel/lib/active_model/attribute_assignment.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activemodel/lib/active_model/attribute_assignment.rb b/activemodel/lib/active_model/attribute_assignment.rb index a0a6de8dd7..f521e74f32 100644 --- a/activemodel/lib/active_model/attribute_assignment.rb +++ b/activemodel/lib/active_model/attribute_assignment.rb @@ -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 |