aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2010-05-19 23:17:58 +0200
committerXavier Noria <fxn@hashref.com>2010-05-19 23:27:09 +0200
commitb9fcd8d71f94702463b97545bb70ce4727c5b47e (patch)
tree34fd579b747ea261e209b96646b7ba638610688f /activesupport/lib
parent1c3d2a5a6035bd2041126a4829b087f76f3586f7 (diff)
downloadrails-b9fcd8d71f94702463b97545bb70ce4727c5b47e.tar.gz
rails-b9fcd8d71f94702463b97545bb70ce4727c5b47e.tar.bz2
rails-b9fcd8d71f94702463b97545bb70ce4727c5b47e.zip
in Ruby things in general happen at runtime, no need to specify that
Diffstat (limited to 'activesupport/lib')
-rw-r--r--activesupport/lib/active_support/core_ext/class/inheritable_attributes.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/activesupport/lib/active_support/core_ext/class/inheritable_attributes.rb b/activesupport/lib/active_support/core_ext/class/inheritable_attributes.rb
index 4f84424e13..4be7eaf476 100644
--- a/activesupport/lib/active_support/core_ext/class/inheritable_attributes.rb
+++ b/activesupport/lib/active_support/core_ext/class/inheritable_attributes.rb
@@ -9,8 +9,9 @@ end
# their parents' attributes, instead of just a pointer to the same. This means that the child can add elements
# to, for example, an array without those additions being shared with either their parent, siblings, or
# children, which is unlike the regular class-level attributes that are shared across the entire hierarchy.
-# Note that subclasses are give a copy of parent attributes at runtime when subclass is created. After the
-# subclass has been created any change in parent attributes will not be reflected in child.
+#
+# The copies of inheritable parent attributes are added to subclasses when they are created, via the
+# +inherited+ hook.
class Class # :nodoc:
def class_inheritable_reader(*syms)
options = syms.extract_options!