diff options
author | Zachary Scott <zachary@zacharyscott.net> | 2014-02-09 03:06:19 +0200 |
---|---|---|
committer | Zachary Scott <zachary@zacharyscott.net> | 2014-02-09 12:27:36 +0100 |
commit | dbe3345c4f84f603b8a6d121229d1cc9f5d3be8c (patch) | |
tree | 0df73cce7c563456e4ae2db7593e9605201a7b6d /activesupport/lib/active_support | |
parent | 2fdbd599be4729fdc271a74557e8f45dec33c0f8 (diff) | |
download | rails-dbe3345c4f84f603b8a6d121229d1cc9f5d3be8c.tar.gz rails-dbe3345c4f84f603b8a6d121229d1cc9f5d3be8c.tar.bz2 rails-dbe3345c4f84f603b8a6d121229d1cc9f5d3be8c.zip |
Fix grammar of internal comment and modify it's location
Diffstat (limited to 'activesupport/lib/active_support')
-rw-r--r-- | activesupport/lib/active_support/core_ext/module/attr_internal.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/core_ext/module/attr_internal.rb b/activesupport/lib/active_support/core_ext/module/attr_internal.rb index db07d549b0..67f0e0335d 100644 --- a/activesupport/lib/active_support/core_ext/module/attr_internal.rb +++ b/activesupport/lib/active_support/core_ext/module/attr_internal.rb @@ -27,7 +27,8 @@ class Module def attr_internal_define(attr_name, type) internal_name = attr_internal_ivar_name(attr_name).sub(/\A@/, '') - class_eval do # class_eval is necessary on 1.9 or else the methods a made private + # class_eval is necessary on 1.9 or else the methods are made private + class_eval do # use native attr_* methods as they are faster on some Ruby implementations send("attr_#{type}", internal_name) end |