aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/core_ext
Commit message (Collapse)AuthorAgeFilesLines
* remove executable permission from files that don't need it. [#4802 ↵rohit2010-06-201-0/+0
| | | | | | state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* Change callbacks to automatically include DescendantsTracker and rename ↵José Valim2010-06-191-5/+5
| | | | descendents to descendants.
* when the timezone is nil, a TimeWithZone object should not be constructed. ↵Aaron Patterson2010-06-172-0/+4
| | | | | | [#4881 state:resolved] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* No need to call convert_key before except.José Valim2010-06-121-1/+0
|
* Date#since, #ago, #beginning_of_day, #end_of_day, #xmlschema return ↵Geoff Buesing2010-06-122-5/+15
| | | | | | TimeWithZone when Time.zone_default is set Signed-off-by: Xavier Noria <fxn@hashref.com>
* Missing require restoredwycats2010-06-081-0/+1
|
* Require encoding.rbwycats2010-06-081-0/+1
|
* Merge remote branch 'rsim/oracle_enhanced_rails3'wycats2010-06-071-3/+3
|\
| * fix conditions when DateTime#to_date and DateTime#xmlschema methods are definedRaimonds Simanovskis2010-06-041-3/+3
| |
* | Fixed Load Error failures in 1.9.2-headRizwan Reza2010-06-071-0/+1
| |
* | ActiveSupport::Dependencies.constantize shortcut for caching named constant ↵Jeremy Kemper2010-06-052-11/+11
| | | | | | | | lookups
* | Small optimization of 1.9 unescape. We should make sure that inbound ASCII ↵wycats2010-06-041-2/+6
| | | | | | | | always means UTF-8. It seems so based on a quick survey of common browsers, but let's be sure
* | removes Array#random_element and backports Array#sample from Ruby 1.9, ↵Xavier Noria2010-06-051-4/+18
|/ | | | thanks to Marc-Andre Lafortune
* Merge branch 'master' of github.com:rails/railsDavid Heinemeier Hansson2010-06-021-13/+9
|\
| * revises the documentation of String#truncate and the truncate helperXavier Noria2010-06-021-13/+9
| |
* | You need the ruby-debug available in your Gemfile for debugger to workDavid Heinemeier Hansson2010-06-021-1/+1
|/
* Merge branch 'master' of github.com:rails/railsDavid Heinemeier Hansson2010-06-012-2/+2
|\
| * Unforce builder from ASSantiago Pastorino2010-06-012-2/+2
| | | | | | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* | Extracted String#truncate from TextHelper#truncate [DHH]David Heinemeier Hansson2010-06-011-0/+33
|/
* Unforce i18n from ASSantiago Pastorino2010-05-312-3/+10
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Merge remote branch 'rails/master'Xavier Noria2010-05-273-19/+20
|\
| * Use multibyte proxy class on 1.9, refactor Unicode.Norman Clarke2010-05-211-13/+17
| | | | | | | | | | | | | | | | | | | | Makes String#mb_chars on Ruby 1.9 return an instance of ActiveSupport::Multibyte::Chars to work around 1.9's lack of Unicode case folding. Refactors class methods from ActiveSupport::Multibyte::Chars into new Unicode module, adding other related functionality for consistency. [#4594 state:resolved] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
| * refactor evals and adds some __FILE__ and __LINE__Santiago Pastorino2010-05-202-6/+3
| | | | | | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* | A small rdoc change made on lines 39 and 41 on ↵jacortinas2010-05-251-2/+2
|/ | | | activesupport/lib/active_support/core_ext/object/to_param.rb. It looks like the method name might have been changed, and the comments were never changed to coincide with the new method name.
* Merge remote branch 'rails/master'Xavier Noria2010-05-194-33/+12
|\
| * removes deprecations of last_(month|year) from master, they will be ↵Xavier Noria2010-05-192-22/+0
| | | | | | | | deprecated in 2.3 instead
| * Renames Array#rand -> Array#random_elementRizwan Reza2010-05-171-11/+1
| | | | | | | | Signed-off-by: Xavier Noria <fxn@hashref.com>
| * Revert "Moved encoding work in progress to a feature branch."wycats2010-05-171-0/+11
| | | | | | | | This reverts commit ade756fe42423033bae8e5aea8f58782f7a6c517.
* | in Ruby things in general happen at runtime, no need to specify thatXavier Noria2010-05-191-2/+3
| |
* | Updating the doc with the info that class_inheritable_accessorNeeraj Singh2010-05-191-0/+2
|/ | | | copies properties to child at runtime
* Moved encoding work in progress to a feature branch.Jeremy Kemper2010-05-161-11/+0
| | | | This reverts commits af0d1a88157942c6e6398dbf73891cff1e152405 and 64d109e3539ad600f58536d3ecabd2f87b67fd1c.
* 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>
* Initial work to improve the state of encodings for templateswycats2010-05-161-0/+11
|
* Add missing require to with_options [#4601 state:resolved]Carlos Antonio da Silva2010-05-151-0/+2
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Better code formatting and proper line numbers for stack tracesNeeraj Singh2010-05-141-1/+1
| | | | | | [#4596 state:resolved] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* defines prev_(month|year) in Date and Time to ease transition to 1.9, and ↵Xavier Noria2010-05-122-7/+28
| | | | deprecates last_(month|year)
* aliases Date#sunday to Date#end_of_week, for symmetry with existing alias ↵Xavier Noria2010-05-091-0/+1
| | | | Date#monday -> Date#beginning_of_week
* Backports Date#>> from 1.9 so that calculations do the right thing around ↵Xavier Noria2010-05-091-0/+18
| | | | | | | | | | the calendar reform Our next_month gives November for some late dates in September of 1582. Related methods, last_*, and in general advance have the same issues. This commit fixes those, see the test suite for expected behavior, which we still run in 1.9 to ensure it matches as we do with other methods defined in Date in 1.9.
* let Time.time_with_datetime_fallback handle properly years in the range 0..138Xavier Noria2010-05-052-3/+11
|
* date/conversions needs time/calculations for (utc|local)_timeXavier Noria2010-05-031-0/+1
|
* let Date.yesterday and Date.tomorrow be based on Date.current rather than ↵Xavier Noria2010-05-021-2/+2
| | | | Date.today
* Move several configuration values from Hash to ActiveSupport::XmlMini, which ↵José Valim2010-04-295-168/+34
| | | | | | 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-295-65/+74
| | | | | | state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* Use explicit source encoding rather than forced UTF-8 from US-ASCII.Santiago Pastorino2010-04-261-1/+2
| | | | Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Use Config::CONFIG['host_os'] instead of RUBY_PLATFORM [#4477 state:resolved]Anil Wadghule2010-04-261-1/+2
| | | | Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* updates String#to_(date|date_time|time) to return nil for blank stringsDaniel Neighman2010-04-211-0/+3
|
* much complete rdoc for String#ordXavier Noria2010-04-191-3/+19
|
* revises the rdoc of String#ordXavier Noria2010-04-191-1/+5
|
* remove code for Ruby < 1.8.7Santiago Pastorino2010-04-181-12/+0
|
* removes code written for Ruby < 1.8.7Xavier Noria2010-04-171-7/+0
|