aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel
diff options
context:
space:
mode:
authorAkira Matsuda <ronnie@dio.jp>2019-07-31 09:51:41 +0900
committerAkira Matsuda <ronnie@dio.jp>2019-07-31 12:18:44 +0900
commit6dbfc6773472c8a503b2a9ab2b9a4c6af6bc4eef (patch)
tree61574bb8411fbb5ba6ca3d0ff7740295dac169d0 /activemodel
parent46d207fde47f7db810e7b1fcc1ba20094ec28824 (diff)
downloadrails-6dbfc6773472c8a503b2a9ab2b9a4c6af6bc4eef.tar.gz
rails-6dbfc6773472c8a503b2a9ab2b9a4c6af6bc4eef.tar.bz2
rails-6dbfc6773472c8a503b2a9ab2b9a4c6af6bc4eef.zip
Accessing ivar with Symbols might be just a very little bit better than with fstrings
Diffstat (limited to 'activemodel')
-rw-r--r--activemodel/lib/active_model/errors.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activemodel/lib/active_model/errors.rb b/activemodel/lib/active_model/errors.rb
index 42c004ce31..c91ac69603 100644
--- a/activemodel/lib/active_model/errors.rb
+++ b/activemodel/lib/active_model/errors.rb
@@ -100,7 +100,7 @@ module ActiveModel
def copy!(other) # :nodoc:
@errors = other.errors.deep_dup
@errors.each { |error|
- error.instance_variable_set("@base", @base)
+ error.instance_variable_set(:@base, @base)
}
end