aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/core_ext/class/attribute_test.rb
Commit message (Collapse)AuthorAgeFilesLines
* modernizes hash syntax in activesupportXavier Noria2016-08-061-3/+3
|
* applies new string literal convention in activesupport/testXavier Noria2016-08-061-19/+19
| | | | | The current code base is not uniform. After some discussion, we have chosen to go with double quotes by default.
* Add option to Class#class_attribute for skipping the query methodAgis-2013-04-061-2/+7
|
* Add instance_accessor option to class_attributeAlexey Vakhov2012-05-221-0/+7
|
* Add option to omit creating an instance reader method on class_attributeJames Miller2011-06-181-0/+6
|
* Class Attribute setter returns set valuePeter Wagenet2010-08-161-0/+5
| | | | Signed-off-by: wycats <wycats@gmail.com>
* Fix class_attribute so that it works with singleton classes.Carl Lerche2010-04-011-0/+6
|
* class_attribute gets instance methods which delegate to but may override ↵Jeremy Kemper2010-03-081-10/+25
| | | | their class values as you'd expect. Disable instance writer methods with :instance_writer => false.
* Introduce class_attribute to declare inheritable class attributes. Writing ↵Jeremy Kemper2010-02-011-0/+47
an attribute on a subclass behaves just like overriding the superclass reader method. Unifies and replaces most usage of cattr_accessor, class_inheritable_attribute, superclass_delegating_attribute, and extlib_inheritable_attribute.