aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/core_ext/class
Commit message (Collapse)AuthorAgeFilesLines
* Revert "DRY class_attribute code"José Valim2012-07-301-3/+6
| | | | | | | class_attribute is a building block and using define_method can be much slower for such basic method definitions. This reverts commit d59208d7032e2be855a89ad8d4685cc08dd7cdb3.
* DRY class_attribute codeAleksandr Zykov2012-07-291-6/+3
|
* remove :nodoc: from Class#subclasses [ci skip]Francesco Rodriguez2012-05-281-4/+10
|
* Add instance_accessor option to class_attributeAlexey Vakhov2012-05-221-2/+4
|
* cut some duplication and minor edits [ci skip]Vijay Dev2012-05-081-37/+4
|
* added docs to cattr_readerFrancesco Rodriguez2012-05-071-0/+27
|
* better docs for cattr_accessor and cattr_writerFrancesco Rodriguez2012-05-071-2/+14
|
* added docs and examples to cattr_writer methodFrancesco Rodriguez2012-05-071-5/+41
|
* added docs to cattr_accessor methodFrancesco Rodriguez2012-05-071-12/+50
|
* adding example about using cattr_accessor with subclassesFrancesco Rodriguez2012-05-071-0/+8
|
* String quotes and trailing spacesAlexey Gaziev2012-04-291-2/+2
|
* Indentation for private methodsAlexey Gaziev2012-04-292-20/+18
| | | | https://github.com/rails/rails/commit/e7d55f734aae204115d0a04a2db774ac364c1312
* AS core_ext refactoringAlexey Gaziev2012-04-291-1/+1
|
* validate attribute names in class and module attribute accessorsDmitry Plashchynski2012-03-301-0/+2
|
* remove unused require from AS/core_ext/class/delegating_att.rbVishnu Atrai2012-03-101-2/+0
|
* simplify Class#descendants using singleton_class methodSergey Nartimov2012-01-041-1/+1
|
* use correct variant of checking whether class is a singletonSergey Nartimov2012-01-031-1/+1
|
* Revert "Merge pull request #4220 from bensie/singleton-class-master"Jon Leighton2011-12-281-1/+14
| | | | | | | This reverts commit 90df0d4f687596943bda108ab0b98dd99cacd46b, reversing changes made to 5e6fc81d63837559a393c173eade281ddeb687dd. Reason: build breakage
* Further simplify singleton_class checking in class_attributeJames Miller2011-12-281-14/+1
|
* simplify singleton_class? methodAaron Patterson2011-07-231-7/+1
|
* Ugh, the class_attribute pull request broke the build. fix it.José Valim2011-06-191-7/+4
|
* Add option to omit creating an instance reader method on class_attributeJames Miller2011-06-181-7/+20
|
* Added instance_accessor: false as an option to Class#cattr_accessor and ↵David Heinemeier Hansson2011-06-131-2/+3
| | | | friends [DHH]
* Removed deprecated methods and related tests from ActiveSupportJosh Kalderimis2011-05-251-178/+0
|
* Remove extra white spaces on ActiveSupport docs.Sebastian Martinez2011-05-231-1/+1
|
* Don't print deprecation warnings every time the user reads or writes an ↵Michael Koziarski2011-05-171-2/+0
| | | | inheritable attribute. The warnings on declaration is enough.
* 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.