aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/core_ext
Commit message (Collapse)AuthorAgeFilesLines
* Added Hash#deep_dup function which performs deep duplication on given hashPiotr Sarnacki2010-11-022-0/+12
|
* Merge branch 'master' of git://github.com/lifo/docrailsXavier Noria2010-10-191-0/+6
|\
| * json_escape makes json invalid doc change [#1485 state:resolved]Neeraj Singh2010-10-161-0/+6
| |
* | explains why ERB::Util#h is removed before being re-aliasedXavier Noria2010-10-181-0/+1
| |
* | implements weeks_ago and prev_week for Date/DateTime/Time [#5122 ↵Rob Zolkos & Xavier Noria2010-10-162-3/+25
|/ | | | state:committed]
* fix time.to_formatted_time(:time) exampleAditya Sanghi2010-10-131-2/+2
|
* Cleanup logger a bit.José Valim2010-10-081-38/+11
|
* PERF: more Hash + map changesSantiago Pastorino2010-10-031-3/+3
|
* speed up index_by by removing a lolinjectAaron Patterson2010-10-011-4/+1
|
* Move uri parser to AS as URI.parser method to reuse it in AP and ARes.Emilio Tagua2010-09-281-0/+8
|
* revises RDoc of Hash#to_param to be more precise about orderingXavier Noria2010-09-281-2/+2
|
* let Hash#to_param and Hash#to_query sort againXavier Noria2010-09-281-2/+3
| | | | | This was a regression introduced in 5c858220085dc4ddc1bec496747059dfbe32f1da. We bring sorting back because people rely on it, eg for constructing consistent cache keys.
* 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
| |
* | Make assert_valid_keys slightly faster.thedarkone2010-09-271-4/+6
| |
* | No need for an extra wrapper array.thedarkone2010-09-271-1/+1
| |
* | Use native attr_* macros for performance reasons.thedarkone2010-09-271-6/+13
| |
* | Creating singleton class for every object whenever the instance-level ↵thedarkone2010-09-271-1/+21
|/ | | | accessor is used quite is expensive.
* Fix 'warning: method redefined' [#5551 state:resolved]Krekoten' Marjan2010-09-251-4/+4
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* attr_accessor_with_default should raise an ArgumentError not a RuntimeErrorAaron Patterson2010-09-241-3/+2
|
* Use map, no need to use inject here.Emilio Tagua2010-09-221-4/+1
| | | | Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* Refactor inject use in hash conversions.Emilio Tagua2010-09-221-8/+2
| | | | Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* Use `Time.current` to maintain consistency with AS::DurationPrem Sichanugrist2010-09-191-2/+2
| | | | | | | | | | In [32b82e4c6f5523cdf5ee78c3022c50b46e018351], the committer has switch methods in AS::Duration to use `Time.current` to return the correct duration based on the `Time.default_zone` instead of using `Time.now`. [#5607 state:committed] Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* Move capture to Kernel. [#5641 state:resolved]Krekoten' Marjan2010-09-181-0/+19
|
* Remove dummy method definition in favor of RDoc hints:Aaron Patterson2010-09-111-7/+5
| | | | http://rdoc.rubyforge.org/RDoc/Parser/Ruby.html
* delegate method should treat :prefix => false same as :prefix => nilNeeraj Singh2010-09-011-1/+1
| | | | | | [#5375 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* let String#strip_heredoc handle blank lines even if they are not indentedXavier Noria2010-08-301-3/+5
|
* implements String#strip_heredocXavier Noria2010-08-292-1/+26
|
* adds missing require for #parameterizeXavier Noria2010-08-261-0/+2
|
* Config is deprecated on 1.8.8 and 1.9.3 use RbConfigSantiago Pastorino2010-08-231-1/+1
|
* making variable names a little more clearAaron Patterson2010-08-231-1/+2
|
* 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