aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/core_ext/class/attribute.rb
Commit message (Collapse)AuthorAgeFilesLines
* Merge remote branch 'miloops/warnings'José Valim2010-09-271-0/+1
|\ | | | | | | | | Conflicts: actionpack/lib/action_controller/metal/url_for.rb
| * Remove method if already exists to avoid warnings.Emilio Tagua2010-09-271-0/+1
| |
* | Creating singleton class for every object whenever the instance-level ↵thedarkone2010-09-271-1/+21
|/ | | | accessor is used quite is expensive.
* Class Attribute setter returns set valuePeter Wagenet2010-08-161-0/+1
| | | | Signed-off-by: wycats <wycats@gmail.com>
* applied guidelines to "# =>"Paco Guzman2010-08-121-6/+6
|
* More documentation to class_attribute.José Valim2010-07-281-11/+24
|
* clarifying the instance_write option with an exampleNeeraj Singh2010-07-281-1/+5
|
* updating description of how class_attribute worksNeeraj Singh2010-07-281-0/+5
|
* clarifying description for class_attribute methodNeeraj Singh2010-07-271-2/+2
|
* refactor evals and adds some __FILE__ and __LINE__Santiago Pastorino2010-05-201-4/+1
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Not using class_eval wasn't adding clarity herewycats2010-04-101-15/+24
|
* moves Object#singleton_class to Kernel#singleton_class to match Ruby also ↵Xavier Noria2010-04-051-1/+1
| | | | there, same for #class_eval to simplify, and adds coverage for class_eval
* Fix class_attribute so that it works with singleton classes.Carl Lerche2010-04-011-1/+1
|
* Remove some 1.9 warnings (resulting in some fixed bugs). Remaining AM ↵wycats2010-03-171-0/+3
| | | | warnings are in dependencies.
* class_attribute gets instance methods which delegate to but may override ↵Jeremy Kemper2010-03-081-2/+23
| | | | their class values as you'd expect. Disable instance writer methods with :instance_writer => false.
* Use Object#singleton_class instead of #metaclass. Prefer Ruby's choice.Jeremy Kemper2010-02-251-5/+6
|
* Introduce class_attribute to declare inheritable class attributes. Writing ↵Jeremy Kemper2010-02-011-0/+36
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.