aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/core_ext
Commit message (Collapse)AuthorAgeFilesLines
...
* Merge branch 'master' of github.com:lifo/docrailsXavier Noria2011-08-161-0/+2
|\
| * Document Hash#extract!.Sebastian Martinez2011-08-151-0/+2
| |
| * Remove unnecessary require (happened after fcbde454f6)Dmitriy Kiriyenko2011-08-131-2/+0
| |
| * remove_possible_method: test if method existsBrad Ediger2011-08-131-2/+7
| | | | | | | | | | | | | | This speeds up remove_possible_method substantially since it doesn't have to rescue a NameError in the common case. Closes #2346.
| * Reset @dirty to false when slicing an instance of SafeBufferBrian Cardarella2011-08-131-0/+6
| |
* | prefer ends_with? over slicingXavier Noria2011-08-161-1/+2
| |
* | Added Array#prepend as an alias for Array#unshift and Array#append as an ↵David Heinemeier Hansson2011-08-152-0/+8
| | | | | | | | alias for Array#<< [DHH]
* | Document Object#public_sendJon Leighton2011-08-151-1/+1
| |
* | Add a test for delegating a method ending in '=' as this is a special case.Jon Leighton2011-08-151-0/+1
| |
* | Need to include public_sendArun Agrawal2011-08-151-0/+1
| |
* | Split up the definitions in Module#delegate depending on :allow_nil, and ↵Jon Leighton2011-08-151-17/+22
| | | | | | | | don't use exceptions for flow control in the :allow_nil => true case.
* | Fix the line number in the backtrace when Module#delegate raisesJon Leighton2011-08-151-1/+1
| |
* | Just do the method call directly in Module#delegate, if we can (we cannot ↵Jon Leighton2011-08-151-1/+4
| | | | | | | | for method names ending in '='). Two reasons: 1) it's faster, see https://gist.github.com/1089783 and 2) more importantly, delegate should not allow you to accidentally call private or protected methods.
* | Backport Object#public_send to 1.8 so that we can implement Module#delegate ↵Jon Leighton2011-08-152-0/+26
| | | | | | | | such that non-public methods raise
* | backporting IO#binread for 1.8 usersAaron Patterson2011-08-081-0/+15
| |
* | Refactored to more closely resemble idiom applied for on_nilEvan Light2011-08-051-5/+11
| |
* | Fix AR test suite error under Rubinius 2.0Guillermo Iguaran2011-08-051-0/+1
| |
* | Remove unnecessary require (happened after fcbde454f6)Dmitriy Kiriyenko2011-08-011-2/+0
| |
* | remove_possible_method: test if method existsBrad Ediger2011-07-311-2/+7
| | | | | | | | | | | | | | This speeds up remove_possible_method substantially since it doesn't have to rescue a NameError in the common case. Closes #2346.
* | Reset @dirty to false when slicing an instance of SafeBufferBrian Cardarella2011-07-291-0/+6
|/
* Merge branch 'master' of git://github.com/lifo/docrailsXavier Noria2011-07-241-1/+1
|\
| * Changed a few instances of of words in the API docs written in British ↵Oemuer Oezkir2011-07-241-1/+1
| | | | | | | | | | | | English to American English(according to Weber)
* | simplify singleton_class? methodAaron Patterson2011-07-231-7/+1
| |
* | Trivial optimization for Enumerable#each_with_objectMarc-Andre Lafortune2011-07-231-2/+2
| |
* | Insure that Enumerable#index_by, group_by, ... return EnumeratorsMarc-Andre Lafortune2011-07-231-0/+3
| |
* | Make Enumerable#many? iterate only over what is necessaryMarc-Andre Lafortune2011-07-231-3/+10
| |
* | Make Enumerable#many? not rely on #sizeMarc-Andre Lafortune2011-07-231-2/+2
| |
* | adds a couple of missing magic comments [fixes #1374]Xavier Noria2011-07-231-0/+1
|/
* missing require of string/encoding to have access to encoding_aware?Damien Mathieu2011-07-201-0/+1
|
* fix String#blank? on binary strings.Damien Mathieu2011-07-201-1/+6
|
* Don't do remove_possible_method when delegate is used. Two reasons: 1) ↵Jon Leighton2011-07-181-4/+0
| | | | warnings should be shown, and fixed at the source and 2) the code is slow. Fixes #1937.
* need magic commentsAkira Matsuda2011-07-141-0/+2
|
* treat fullwidth whitespace as a blank characterAkira Matsuda2011-07-141-1/+5
|
* #many? uses count instead of select - a bit fasterJulius Markūnas2011-07-111-1/+1
|
* Merge pull request #1296 from c42engineering/issue636José Valim2011-07-111-1/+1
|\ | | | | Resubmitting issue #636 as a pull request
| * Issue #636 - Parsing an xml file with multiple records and extra attributes ↵Sidu Ponnappa2011-07-111-1/+1
| | | | | | | | (besides type) fails
* | Merge pull request #1463 from psanford/masterSantiago Pastorino2011-07-061-2/+2
|\ \ | | | | | | Fix timezone handling in String.to_time
| * | Make String.to_time respect timezonesNate Mueller2011-06-021-2/+2
| | |
* | | Merge branch 'master' of git://github.com/lifo/docrailsXavier Noria2011-07-051-8/+8
|\ \ \
| * | | document meta methodsVijay Dev2011-07-031-8/+8
| | | |
* | | | all numerics should be html_safe - Closes #1935Damien Mathieu2011-07-031-1/+1
| | | |
* | | | Merge pull request #1690 from vijaydev/mattr_accessor_changesJosé Valim2011-06-301-2/+6
|\ \ \ \ | | | | | | | | | | Added instance_accessor: false to Module#mattr_accessor
| * | | | Added instance_accessor: false to Module#mattr_accessorVijay Dev2011-06-141-2/+6
| | | | |
* | | | | 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.
* | | | | Merge pull request #1648 from dlee/acronymsXavier Noria2011-06-241-1/+0
|\ \ \ \ \ | |_|/ / / |/| | | | Inflector support for acronyms (Issue #1366)
| * | | | RefactorDavid Lee2011-06-111-1/+0
| | | | |
* | | | | Merge pull request #1750 from dmathieu/non_string_methodsXavier Noria2011-06-221-2/+2
|\ \ \ \ \ | | | | | | | | | | | | Calling unsafe methods which don't return a string shouldn't fail
| * | | | | calling unsafe methods which don't return a string shouldn't failDamien Mathieu2011-06-221-2/+2
| | | | | |
* | | | | | 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
| | | | | |