aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/core_ext
Commit message (Collapse)AuthorAgeFilesLines
* Correct and clarify Array#to_sentence docs. Closes #5458.Jeremy Kemper2006-06-221-2/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4485 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* alias_method_chain preserves method punctuation so foo, foo?, and foo! may ↵Jeremy Kemper2006-06-211-3/+14
| | | | | | be chained with the same feature. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4482 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Enhance Symbol#to_proc so it works with list objects, such as ↵Rick Olson2006-06-171-1/+1
| | | | | | multi-dimensional arrays. Closes #5295 [nov@yo.rim.or.jp] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4455 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added Hash.create_from_xml(string) which will create a hash from a XML ↵David Heinemeier Hansson2006-06-162-1/+71
| | | | | | string and even typecast if possible [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4453 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added binary formattingDavid Heinemeier Hansson2006-06-041-1/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4432 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Rolled back broken aliasingDavid Heinemeier Hansson2006-06-031-10/+4
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4430 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that Module#alias_method_chain should work with both foo? foo! and foo ↵David Heinemeier Hansson2006-06-031-4/+10
| | | | | | at the same time (closes #4954) [anna@wota.jp] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4429 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added documentation for inflections (closes #5013) [m.stienstra@fngtps.com]David Heinemeier Hansson2006-06-031-3/+65
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4428 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Uncry thyselfJeremy Kemper2006-06-031-0/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4414 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* to_xml fixes, features, and speedup. Closes #4989.Jeremy Kemper2006-06-032-16/+53
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4413 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that Base.find :all, :conditions => [ "id IN (?)", collection ] would ↵David Heinemeier Hansson2006-06-011-1/+1
| | | | | | fail if collection was empty [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4390 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Oracle and others wont take a string null for an answerDavid Heinemeier Hansson2006-06-011-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4389 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added Array#to_s(:db) that'll produce a comma-separated list of ids [DHH] ↵David Heinemeier Hansson2006-05-313-39/+66
| | | | | | Split Grouping into its own file git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4387 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* fix test warningsJeremy Kemper2006-05-311-3/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4386 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Remove Enumerable#first_match in favor of using break(result_for_each)Nicholas Seckar2006-05-211-8/+0
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4349 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Make Array#in_groups_of just return the grouped collection if a block isn't ↵Marcel Molina2006-05-171-1/+5
| | | | | | given. [Marcel Molina Jr.] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4345 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Don't destroy a HashWithIndifferentAccess if symbolize_keys! or ↵Marcel Molina2006-05-141-0/+3
| | | | | | stringify_keys! is called on it. Closes #5076. [Marcel Molina Jr., guy.naor@famundo.com] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4339 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Trim typo.Jeremy Kemper2006-05-081-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4330 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Document Active Support's Module::delegate. Closes #5002.Jeremy Kemper2006-05-081-2/+27
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4329 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Replace alias method chaining with Module#alias_method_chain. [Marcel Molina ↵Marcel Molina2006-04-291-2/+1
| | | | | | Jr.] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4312 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Strip out punctuation on predicates or bang methods being aliased with ↵Marcel Molina2006-04-291-2/+5
| | | | | | alias_method_chain since target?_without_feature is not a valid method name. Add tests for Module#alias_method_chain. [Marcel Molina Jr.] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4311 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Replace Ruby's deprecated append_features in favor of included. [Marcel ↵Marcel Molina2006-04-291-2/+1
| | | | | | Molina Jr.] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4310 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added Module#alias_method_chainJamis Buck2006-04-262-0/+17
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4276 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add Array#split for dividing arrays into one or more subarrays by value or blockSam Stephenson2006-04-131-0/+19
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4208 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Update the diagnostics template skip the useless '<controller not set>' text.Nicholas Seckar2006-04-043-7/+33
| | | | | | | | | Fix symbol extensions test case. Clean paths inside of exception messages and traces. Add Pathname.clean_within for cleaning all the paths inside of a string. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4158 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Typo fixNicholas Seckar2006-04-031-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4139 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added docs for to_procDavid Heinemeier Hansson2006-04-021-1/+8
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4132 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Use --simple-prompt instead of --prompt-mode simple for console ↵David Heinemeier Hansson2006-04-011-1/+1
| | | | | | compatibility with Windows/Ruby 1.8.2 #4532 [starr@starrnhorne.com] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4118 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Dependencies cleanup. Fixes #4221.Nicholas Seckar2006-03-273-1/+37
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4060 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Remove broken hack which has no effect.Nicholas Seckar2006-03-261-1/+0
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4050 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Update Object.subclasses_of to locate nested classes. Update ↵Nicholas Seckar2006-03-261-4/+7
| | | | | | Object.remove_subclasses_of to use Class.remove_class. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4049 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added Fixnum#seconds for consistency, so you can say 5.minutes + 30.seconds ↵David Heinemeier Hansson2006-03-251-0/+5
| | | | | | instead of 5.minutes + 30 (closes #4389) [Francois Beausoleil] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4029 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed the hash.delete :sym (closes #2176) [Stefan Kaes]David Heinemeier Hansson2006-03-201-2/+9
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4005 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Updated Kernel#returning for the AP performance patch [DHH]David Heinemeier Hansson2006-03-201-1/+10
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3991 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Performance speedup for ActionController (closes #4174) [Stefan Kaes] ↵David Heinemeier Hansson2006-03-201-1/+1
| | | | | | Includes caching of filter chains -- be on the lookout for problems with that! git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3989 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Rolled back #2176 because it destroyed performance [DHH]David Heinemeier Hansson2006-03-201-24/+36
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3988 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* fix indifferent hash. The lambdas were acting funny in a running rails app. ↵Rick Olson2006-03-201-5/+15
| | | | | | closes #2176 git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3987 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added option to String#camelize to generate lower-cased camel case by ↵David Heinemeier Hansson2006-03-201-2/+5
| | | | | | passing in :lower, like "super_man".camelize(:lower) # => "superMan" [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3986 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added nicer message for assert_redirected_to (closes #4294) [court3nay, ↵Rick Olson2006-03-192-0/+13
| | | | | | Chris McGrath] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3969 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Date in iso8601 should just be a to_s aliasDavid Heinemeier Hansson2006-03-181-3/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3952 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Dates should be able to go xmlschema too [DHH]David Heinemeier Hansson2006-03-181-0/+4
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3950 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed the to_xml case (closes #4201) [twoggle@gmail.com]David Heinemeier Hansson2006-03-181-6/+4
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3925 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed HashWithIndifferentAccess#delete to work with both symbols and strings ↵David Heinemeier Hansson2006-03-181-36/+14
| | | | | | (closes #2176) [Caio Chassot] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3912 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* dasherize the root element when doing to_xmlJamis Buck2006-03-162-2/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3901 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added Time#advance to do precise time time calculations for cases where a ↵David Heinemeier Hansson2006-03-162-0/+12
| | | | | | month being approximated to 30 days won't do (closes #1860) [Rick Olson] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3887 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Time#xmlschema is only available when you've required 'time'. Add a unit ↵Michael Koziarski2006-03-151-0/+1
| | | | | | test to catch regressions. [Koz] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3880 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Switch to_xml to use the date formate defined in xml schema.[Koz]Michael Koziarski2006-03-151-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3869 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* tag! is nicer than __send__David Heinemeier Hansson2006-03-102-2/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3833 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Implemented nested to_xml and named elements for array xmling [DHH]David Heinemeier Hansson2006-03-092-13/+19
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3830 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed to_xml across the board to use nice indention, better skip_attributes ↵David Heinemeier Hansson2006-03-092-10/+19
| | | | | | workings, no type on strings, and cleaned tests [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3829 5ecf4fe2-1ee6-0310-87b1-e25e094e27de