aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/core_ext/class
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* superclass_delegating_accessor rewritten to serve as the base for many other ↵Yehuda Katz2010-01-291-34/+0
| | | | kinds of accessors (step 1 of unification)
* Allow :instance_reader to be given to superclass_delegating_accessor as well.José Valim2009-11-011-0/+7
|
* Fix dependencies revealed by testing in isolationJeremy Kemper2009-04-222-0/+2
|
* Explicitly require core extension under testJeremy Kemper2009-03-241-0/+1
|
* Add query methods for superclass_delegating_readerJeremy Kemper2008-03-311-4/+14
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9156 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* require abstract_unit directly since test is in load pathJeremy Kemper2008-01-053-5/+5
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8563 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Ruby 1.9 compat. References #1689 [Pratik Naik]Jeremy Kemper2007-12-101-3/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8363 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add new superclass_delegating_accessors. Similar to class inheritable ↵Michael Koziarski2007-10-291-0/+105
| | | | | | attributes but with subtly different semantics. [Koz, tarmo] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8056 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Improve various test coverage. Closes #8676 [kamal]Jeremy Kemper2007-06-251-0/+16
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7117 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added :instance_writer option to #mattr_writer/accessor, ↵Rick Olson2007-01-282-0/+239
#cattr_writer/accessor, and #class_inheritable_writer to skip the creation of the instance writer. [Rick] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6050 5ecf4fe2-1ee6-0310-87b1-e25e094e27de