aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/lib
diff options
context:
space:
mode:
authorshotat <shotat@users.noreply.github.com>2017-06-14 17:49:54 +0900
committershotat <shotat@users.noreply.github.com>2017-06-14 17:49:54 +0900
commit2396f79fec607657b61eef329a98c4debcaa88c7 (patch)
tree2ee89d1da942405147dade9824c869a6d1490bf5 /activemodel/lib
parent285cba022ce37977f977376a20ca866197ef33bd (diff)
downloadrails-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.rb2
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