aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/lib
diff options
context:
space:
mode:
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