aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/core_ext/array
Commit message (Collapse)AuthorAgeFilesLines
* remove docs related to ruby 1.8 from Array#wrapVasiliy Ermolovich2012-05-121-3/+0
|
* Keep all methods in object/deep_dupPiotr Sarnacki2012-05-061-6/+0
|
* Nice logic for deep_dup in railsAlexey Gaziev2012-05-061-0/+6
|
* AS core_ext refactoring pt.2Alexey Gaziev2012-04-293-52/+54
|
* AS core_ext refactoringAlexey Gaziev2012-04-292-2/+2
|
* adds deprecation warnings to the RDoc of Array#uniq_by(!)Xavier Noria2011-12-201-2/+6
|
* deprecate Array#uniq_by and Array#uniq_by! in favor of Array#uniq and ↵Vasiliy Ermolovich2011-12-221-6/+8
| | | | Array#uniq! from ruby 1.9
* remove Array#sample from core_extVasiliy Ermolovich2011-12-211-30/+0
|
* requiring enumerator is not nessessary in ruby 1.9Sergey Nartimov2011-12-201-2/+0
|
* Fixed misleading docs for String#to_formatted_s(:db)Martin Svalin2011-10-201-3/+3
|
* Added Array#prepend as an alias for Array#unshift and Array#append as an ↵David Heinemeier Hansson2011-08-151-0/+7
| | | | alias for Array#<< [DHH]
* Array.wrap should follow Kernel#Array semantics when the object's to_ary is ↵Jon Leighton2011-06-301-1/+1
| | | | nil. In this case, the object should be wrapped.
* Fixed minor typo: 'Arraw' to 'Array'thoefer2011-06-111-1/+1
|
* avoid creating range objectsAaron Patterson2011-05-291-1/+1
|
* fixes incorrect error message for sample methodVijay Dev2011-05-071-1/+1
|
* use new AR calls in examplesVijay Dev2011-05-071-2/+2
|
* fix comment alignmentVijay Dev2011-05-071-3/+2
|
* fixed a small bug with Array#from core_extJosh Kalderimis2011-04-271-1/+1
|
* using @tenderlove's suggested implementation to speed things upJared McFarland2011-04-271-1/+1
|
* fixing Array#from to return consistent resultsJared McFarland2011-04-261-2/+2
|
* Added an example of exception situation on Array#sample docsSebastian Martinez2011-04-151-4/+5
|
* Improved Array#sample documentationSebastian Martinez2011-04-151-1/+3
|
* more "SSL everywhere" for GitHub URLsAkira Matsuda2011-03-071-2/+2
| | | | see: https://github.com/blog/738-sidejack-prevention-phase-2-ssl-everywhere
* to_sentence should return a duplicateMatthew Mongeau2010-08-171-1/+1
|
* Deletes trailing whitespaces (over text files only find * -type f -exec sed ↵Santiago Pastorino2010-08-142-5/+5
| | | | 's/[ \t]*$//' -i {} \;)
* 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
* Merge remote branch 'rails/master'Xavier Noria2010-07-302-5/+10
|\
| * edit pass to apply API guideline wrt the use of "# =>" in example codeXavier Noria2010-07-301-1/+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
* | polishing commentsNeeraj Singh2010-07-261-5/+5
|/
* Documentation for Array#sampleThiago Pradi2010-06-281-0/+7
|
* Fix a bunch of minor spelling mistakesEvgeniy Dolzhenko2010-06-111-1/+1
|
* removes Array#random_element and backports Array#sample from Ruby 1.9, ↵Xavier Noria2010-06-051-4/+18
| | | | thanks to Marc-Andre Lafortune
* Unforce builder from ASSantiago Pastorino2010-06-011-1/+1
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Unforce i18n from ASSantiago Pastorino2010-05-311-3/+9
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Renames Array#rand -> Array#random_elementRizwan Reza2010-05-171-11/+1
| | | | Signed-off-by: Xavier Noria <fxn@hashref.com>
* Change on Array extension from rand => random_element [#4555 state:committed]Santiago Pastorino2010-05-161-1/+11
| | | | Signed-off-by: Xavier Noria <fxn@hashref.com>
* Move several configuration values from Hash to ActiveSupport::XmlMini, which ↵José Valim2010-04-291-15/+18
| | | | | | both Hash and Array depends on. Also, refactored ActiveModel serializers to just use ActiveSupport::XmlMini.to_tag. As consequence, if a serialized attribute is an array or a hash, it's not encoded as yaml, but as a hash or array.
* array.to_xml should be able to handle all types of data elements [#4490 ↵Neeraj Singh2010-04-291-18/+13
| | | | | | state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* Made arrays of ActiveRecords, and any classes, with namespaces convert to ↵mfoster2010-04-101-1/+1
| | | | | | valid xml. [#3824 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* Limit Array#extract_options! to directl instances of Hash and HWIA. Add ↵wycats2010-03-271-1/+16
| | | | extractable_options? to Hash so that subclasses of Hash can opt-into extractable behavior. This fixes an issue where respond_with wasn't working with subclasses of Hash that were provided by other libraries (such as CouchDB or Mashie) [#4145 state:resolved]
* Make many parts of Rails lazy. In order to facilitate this,wycats2010-03-071-1/+0
| | | | | | | | | | | | add lazy_load_hooks.rb, which allows us to declare code that should be run at some later time. For instance, this allows us to defer requiring ActiveRecord::Base at boot time purely to apply configuration. Instead, we register a hook that should apply configuration once ActiveRecord::Base is loaded. With these changes, brings down total boot time of a new app to 300ms in production and 400ms in dev. TODO: rename base_hook
* Remove deprecated behavior since 2.3.José Valim and Mikel Lindsaar2010-01-241-13/+0
|
* Add uniq_by and uniq_by! to Array.José Valim and Mikel Lindsaar2010-01-241-0/+17
|
* Merge docrailsPratik Naik2010-01-172-1/+10
|
* Fix the i18n dependency problemDavid Heinemeier Hansson2009-12-271-0/+1
|
* Ruby 1.9.2: work around Array allowing method_missing for to_aryJeremy Kemper2009-11-131-4/+3
|
* Consolidate Object#to_param and #to_query core extensionsJeremy Kemper2009-11-021-16/+0
|
* Array.wrap(struct) needs to return the wrapped structYehuda Katz2009-10-281-12/+7
|
* This is all that's needed in 1.8.7+Yehuda Katz2009-10-281-10/+11
|