mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Merge pull request #25773 from jmondo/patch-2
Update class_attribute docs
This commit is contained in:
commit
79bc06647c
1 changed files with 1 additions and 1 deletions
|
@ -27,7 +27,7 @@ class Class
|
|||
# This matches normal Ruby method inheritance: think of writing an attribute
|
||||
# on a subclass as overriding the reader method. However, you need to be aware
|
||||
# when using +class_attribute+ with mutable structures as +Array+ or +Hash+.
|
||||
# In such cases, you don't want to do changes in places but use setters:
|
||||
# In such cases, you don't want to do changes in place. Instead use setters:
|
||||
#
|
||||
# Base.setting = []
|
||||
# Base.setting # => []
|
||||
|
|
Loading…
Reference in a new issue