mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Warn people that these methods are deprecated.
This commit is contained in:
committed by
Xavier Noria
parent
4c27ad0c23
commit
8f526b30f4
@@ -1045,6 +1045,8 @@ NOTE: Defined in +active_support/core_ext/class/attribute_accessors.rb+.
|
||||
|
||||
h4. Class Inheritable Attributes
|
||||
|
||||
WARNING: Class Inheritable Attributes are deprecated. It's recommended that you use +Class#class_attribute+ instead.
|
||||
|
||||
Class variables are shared down the inheritance tree. Class instance variables are not shared, but they are not inherited either. The macros +class_inheritable_reader+, +class_inheritable_writer+, and +class_inheritable_accessor+ provide accessors for class-level data which is inherited but not shared with children:
|
||||
|
||||
<ruby>
|
||||
|
||||
Reference in New Issue
Block a user