Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Unify cattr and mattr accessors declarations | Genadi Samokovarov | 2013-12-02 | 1 | -70/+0 |
| | |||||
* | Unify `cattr_*` interface: allow to pass a block to `cattr_reader`. | Alexey Chernenkov | 2013-11-15 | 1 | -0/+9 |
| | | | | | | | | | Example: class A cattr_reader(:defr) { 'default_reader_value' } end A.defr # => 'default_reader_value' | ||||
* | more descriptive NameError's messages for class attributes | Hrvoje Šimić | 2013-04-17 | 1 | -4/+6 |
| | |||||
* | Add option to Class#class_attribute for skipping the query method | Agis- | 2013-04-06 | 1 | -2/+7 |
| | |||||
* | Add instance_accessor option to class_attribute | Alexey Vakhov | 2012-05-22 | 1 | -0/+7 |
| | |||||
* | validate attribute names in class and module attribute accessors | Dmitry Plashchynski | 2012-03-30 | 1 | -0/+14 |
| | |||||
* | use AS::TestCase as the base class | Aaron Patterson | 2012-01-05 | 2 | -2/+2 |
| | |||||
* | Add option to omit creating an instance reader method on class_attribute | James Miller | 2011-06-18 | 1 | -0/+6 |
| | |||||
* | Added instance_accessor: false as an option to Class#cattr_accessor and ↵ | David Heinemeier Hansson | 2011-06-13 | 1 | -2/+9 |
| | | | | friends [DHH] | ||||
* | Removed deprecated methods and related tests from ActiveSupport | Josh Kalderimis | 2011-05-25 | 1 | -230/+0 |
| | |||||
* | class inheritable attributes is used no more! all internal use of class ↵ | Josh Kalderimis | 2010-11-20 | 1 | -0/+5 |
| | | | | | | inheritable has been changed to class_attribute. class inheritable attributes has been deprecated. Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Class Attribute setter returns set value | Peter Wagenet | 2010-08-16 | 1 | -0/+5 |
| | | | | Signed-off-by: wycats <wycats@gmail.com> | ||||
* | Deletes trailing whitespaces (over text files only find * -type f -exec sed ↵ | Santiago Pastorino | 2010-08-14 | 2 | -16/+16 |
| | | | | 's/[ \t]*$//' -i {} \;) | ||||
* | Final iteration of use better testing methods | Neeraj Singh | 2010-05-19 | 3 | -10/+10 |
| | | | | | | [#4652 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Fix class_attribute so that it works with singleton classes. | Carl Lerche | 2010-04-01 | 1 | -0/+6 |
| | |||||
* | fixing inconsistency with cattr_reader and matter_reader [#4172 state:resolved] | Kabari Hendrick | 2010-03-27 | 1 | -1/+7 |
| | | | Signed-off-by: wycats <wycats@gmail.com> | ||||
* | Remove test ordering bug | Evan Phoenix | 2010-03-22 | 1 | -8/+14 |
| | | | | | Don't reuse classes with class attributes when testing different use cases of class attributes. | ||||
* | class_attribute gets instance methods which delegate to but may override ↵ | Jeremy Kemper | 2010-03-08 | 1 | -10/+25 |
| | | | | their class values as you'd expect. Disable instance writer methods with :instance_writer => false. | ||||
* | Clear the attribute after done | Yehuda Katz | 2010-02-16 | 1 | -0/+2 |
| | |||||
* | Introduce class_attribute to declare inheritable class attributes. Writing ↵ | Jeremy Kemper | 2010-02-01 | 1 | -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 Katz | 2010-01-29 | 1 | -34/+0 |
| | | | | kinds of accessors (step 1 of unification) | ||||
* | Allow :instance_reader to be given to superclass_delegating_accessor as well. | José Valim | 2009-11-01 | 1 | -0/+7 |
| | |||||
* | Fix dependencies revealed by testing in isolation | Jeremy Kemper | 2009-04-22 | 2 | -0/+2 |
| | |||||
* | Explicitly require core extension under test | Jeremy Kemper | 2009-03-24 | 1 | -0/+1 |
| | |||||
* | Add query methods for superclass_delegating_reader | Jeremy Kemper | 2008-03-31 | 1 | -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 path | Jeremy Kemper | 2008-01-05 | 3 | -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 Kemper | 2007-12-10 | 1 | -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 Koziarski | 2007-10-29 | 1 | -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 Kemper | 2007-06-25 | 1 | -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 Olson | 2007-01-28 | 2 | -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 |