aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/core_ext/class
Commit message (Collapse)AuthorAgeFilesLines
* Use #remove_possible_method insteadSebastian Martinez2011-05-041-1/+1
|
* Class.__subclasses__ was removed from Rubinius.John Firebaugh2011-01-181-34/+20
| | | | | https://github.com/evanphx/rubinius/issues/issue/11 https://github.com/evanphx/rubinius/commit/2fccbb5dad5cb3f5414d635547290538cfc0a2d4
* class inheritable attributes is used no more! all internal use of class ↵Josh Kalderimis2010-11-201-0/+9
| | | | | | inheritable has been changed to class_attribute. class inheritable attributes has been deprecated. Signed-off-by: José Valim <jose.valim@gmail.com>
* bye bye extlib_inheritable_*, AS callbacks now using class_attributeJosh Kalderimis2010-11-181-83/+0
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* PERF: more Hash + map changesSantiago Pastorino2010-10-031-3/+3
|
* 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.
* Merge remote branch 'docrails/master'Xavier Noria2010-08-171-1/+1
|\
| * recommended is the right word hereSantiago Pastorino2010-08-151-1/+1
| |
* | Class Attribute setter returns set valuePeter Wagenet2010-08-161-0/+1
|/ | | | Signed-off-by: wycats <wycats@gmail.com>
* deprected -> deprecatedSantiago Pastorino2010-08-141-1/+1
|
* applied guidelines to "# =>"Paco Guzman2010-08-123-10/+10
|
* correcting wrong exampleNeeraj Singh2010-08-061-1/+1
|
* fixing typoNeeraj Singh2010-08-051-1/+1
|
* more documentation for class_inheritable_*Neeraj Singh2010-08-051-0/+22
|
* More documentation to class_attribute.José Valim2010-07-281-11/+24
|
* adding comment specifying that cattr_accessor also supports instance_write ↵Neeraj Singh2010-07-281-0/+10
| | | | and instance_rader option
* clarifying the instance_write option with an exampleNeeraj Singh2010-07-281-1/+5
|
* adding some comments to cattr_accessor methodNeeraj Singh2010-07-281-0/+6
|
* updating description of how class_attribute worksNeeraj Singh2010-07-281-0/+5
|
* clarifying description for class_attribute methodNeeraj Singh2010-07-271-2/+2
|
* polishing commentsNeeraj Singh2010-07-261-3/+3
|
* Define a convention for descendants and subclasses.José Valim2010-07-051-31/+26
| | | | | | The former should be symmetric with ancestors and include all children. However, it should not include self since ancestors + descendants should not have duplicated. The latter is symmetric to superclass in the sense it only includes direct children. By adopting a convention, we expect to have less conflict with other frameworks, as Datamapper. For this moment, to ensure ActiveModel::Validations can be used with Datamapper, we should always call ActiveSupport::DescendantsTracker.descendants(self) internally instead of self.descendants avoiding conflicts.
* removed 'unless const_defined?' code smellJosh Kalderimis2010-06-211-1/+1
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Change callbacks to automatically include DescendantsTracker and rename ↵José Valim2010-06-191-5/+5
| | | | descendents to descendants.
* refactor evals and adds some __FILE__ and __LINE__Santiago Pastorino2010-05-201-4/+1
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* in Ruby things in general happen at runtime, no need to specify thatXavier Noria2010-05-191-2/+3
|
* Updating the doc with the info that class_inheritable_accessorNeeraj Singh2010-05-191-0/+2
| | | | copies properties to child at runtime
* 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-052-2/+2
| | | | 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
|
* LINE on class_eval need + 1, also removed comments [#4281 state:committed]Santiago Pastorino2010-03-271-24/+27
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* flatten not needed hereSantiago Pastorino2010-03-271-2/+2
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* fixing inconsistency with cattr_reader and matter_reader [#4172 state:resolved]Kabari Hendrick2010-03-271-5/+8
| | | Signed-off-by: wycats <wycats@gmail.com>
* Move require closer to homeJeremy Kemper2010-03-171-0/+1
|
* fixing activerecord tests [#4205 state:resolved]Aaron Patterson2010-03-171-2/+2
| | | | Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Fix some more warnings on 1.9wycats2010-03-171-0/+2
|
* 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-252-11/+12
|
* moves Class#reachable? to Module#reachable?, bases implementation on ↵Xavier Noria2010-02-111-6/+3
| | | | anonymous? and constantize, and adds test coverage
* Reinstate Object.subclasses_of and Class#descendents for plugin compat.Jeremy Kemper2010-02-091-0/+58
| | | | This reverts commits 7d312e54bad9c39634c137caec07dfc8df471650, 5f981ff0294ba45aa44ad15aa063970b29aeec44, f85f5dfc8ffefff174b695c6363211d342f77a57, 245bfafe335ff883f7a096eab95ac22fe2848679, and ec7c642f5fe60afc857aa64f1a9b4c2be56f9d70
* 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.
* superclass_delegating_accessor rewritten to serve as the base for many other ↵Yehuda Katz2010-01-291-53/+27
| | | | kinds of accessors (step 1 of unification)
* deletes no void files removal.rb and class_test.rbXavier Noria2010-01-261-5/+0
|
* removes unused method Class#remove_classXavier Noria2010-01-261-31/+0
|
* removes unused method Class#reachable?Xavier Noria2010-01-261-5/+0
|
* removes unused Class#remove_subclassesXavier Noria2010-01-261-9/+0
|
* removes unused method Class#subclassesXavier Noria2010-01-261-7/+0
|