aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/core_ext
Commit message (Collapse)AuthorAgeFilesLines
* avoids a ton o warnings ↵Xavier Noria2010-08-191-3/+1
| | | | activesupport/lib/active_support/dependencies.rb:239: warning: loading in progress, circular require considered harmful ... activesupport/lib/active_support/core_ext/hash/indifferent_access.rb while running the suite in Ruby 1.9.2
* to_sentence should return a duplicateMatthew Mongeau2010-08-171-1/+1
|
* 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>
* | Object#returning has gone, it's already deprecated on 3-0-stableSantiago Pastorino2010-08-152-44/+0
|/
* Deletes trailing whitespaces (over text files only find * -type f -exec sed ↵Santiago Pastorino2010-08-1423-75/+75
| | | | 's/[ \t]*$//' -i {} \;)
* 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
|
* Bring returning back to ease migration.José Valim2010-08-022-0/+44
|
* explains Array.wrap directly, rather by comparison with Kernel#Array which ↵Xavier Noria2010-08-011-1/+22
| | | | is too obscure, leaves the comparison to document the differences, and adds a comparison with the related idiom that uses the splat operator
* Add another missing require in 'active_support/inflector/inflections'Carl Lerche2010-07-291-0/+1
|
* Merge remote branch 'rails/master'Xavier Noria2010-07-305-11/+18
|\
| * edit pass to apply API guideline wrt the use of "# =>" in example codeXavier Noria2010-07-303-7/+8
| |
| * Add a missing require in 'active_support/core_ext/string/inflections'Carl Lerche2010-07-291-0/+1
| |
| * adds test coverage for edge-cases of Array.wrap, and better documentation ↵Xavier Noria2010-07-281-4/+9
| | | | | | | | for how it differs from Kernel#Array
* | itsy bitsy changes to documentationNeeraj Singh2010-07-281-13/+13
| |
* | 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-262-8/+8
|/
* Object#returning removedSantiago Pastorino2010-07-253-46/+0
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* make a throwaway value equals to _ to avoid warningsSantiago Pastorino2010-07-241-1/+1
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Removes unused varsSantiago Pastorino2010-07-241-2/+2
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Hash#to_param is doesn't use sort anymore, some tests added for Hash#to_paramSantiago Pastorino2010-07-221-1/+1
|
* Introduced redefine_methodŁukasz Strzałkowski2010-07-191-0/+5
|
* It's not needed to initialize the attr when calling mattr_writerSantiago Pastorino2010-07-181-7/+1
|
* Merge remote branch 'docrails/master'Xavier Noria2010-07-091-1/+1
|\
| * Minor typos: 'built-in' instead of 'built in', 'built into' instead of ↵Jaime Iniesta2010-07-091-1/+1
| | | | | | | | 'built in to'
* | Improve bang method defs, make slice! operate in-place. [#5028 state:resolved]Norman Clarke2010-07-081-1/+1
|/ | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Define a convention for descendants and subclasses.José Valim2010-07-053-43/+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.
* Move Date#xmlschema to conversions and add a missing requireSantiago Pastorino2010-07-042-9/+10
|
* Refactor move some date, time and date_time methods to */zones and fixed ↵Santiago Pastorino2010-07-038-24/+32
| | | | some requires
* AS json refactor, move to_json implementation to core_ext and a cleanup a ↵Santiago Pastorino2010-07-012-0/+20
| | | | bit the code
* Merge remote branch 'rails/master'Xavier Noria2010-06-301-3/+2
|\
| * Implemented getbyte as an aliased method and RDoc addedSantiago Pastorino2010-06-281-3/+2
| | | | | | | | Signed-off-by: Xavier Noria <fxn@hashref.com>
| * Makes more sense to ask about method_defined?Santiago Pastorino2010-06-281-1/+1
| | | | | | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* | Documentation for Array#sampleThiago Pradi2010-06-281-0/+7
|/
* Added getbyte as a core_ext to Ruby < 1.9Santiago Pastorino2010-06-271-0/+4
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Move constantize from conversions to inflections.Santiago Pastorino2010-06-262-11/+11
| | | | | | | | This removes ActiveModel dependency on TZInfo. [#4979 state:committed] Signed-off-by: José Valim <jose.valim@gmail.com>
* Missing require for the class/attribute.rb [4812 state:resolved]Prem Sichanugrist2010-06-221-0/+1
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* removed default Formatter in logger, not needed with 1.8.7 upwardsJosh Kalderimis2010-06-221-38/+0
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* removed 'unless const_defined?' code smellJosh Kalderimis2010-06-211-1/+1
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Merge remote branch 'rails/master'Xavier Noria2010-06-204-5/+9
|\ | | | | | | | | Conflicts: actionpack/lib/abstract_controller/base.rb