aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel
diff options
context:
space:
mode:
authoryuuji.yaginuma <yuuji.yaginuma@gmail.com>2017-11-10 14:04:51 +0900
committeryuuji.yaginuma <yuuji.yaginuma@gmail.com>2017-11-10 17:21:58 +0900
commit5ed618e192e9788094bd92c51255dda1c4fd0eae (patch)
tree483459cb9a1c9e43333ae8c5835c65378166939a /activemodel
parent7d862ffb6265fe889635e2f8311261a4a37702f1 (diff)
downloadrails-5ed618e192e9788094bd92c51255dda1c4fd0eae.tar.gz
rails-5ed618e192e9788094bd92c51255dda1c4fd0eae.tar.bz2
rails-5ed618e192e9788094bd92c51255dda1c4fd0eae.zip
Fix "warning: assigned but unused variable - name"
Diffstat (limited to 'activemodel')
-rw-r--r--activemodel/lib/active_model/attributes.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activemodel/lib/active_model/attributes.rb b/activemodel/lib/active_model/attributes.rb
index 13cad87875..6f84748804 100644
--- a/activemodel/lib/active_model/attributes.rb
+++ b/activemodel/lib/active_model/attributes.rb
@@ -77,7 +77,7 @@ module ActiveModel
attr_name.to_s
end
- @attributes.write_from_user(attr_name.to_s, value)
+ @attributes.write_from_user(name, value)
value
end