aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Initial check-in of Active ResourseDavid Heinemeier Hansson2006-06-2512-0/+543
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4492 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add Enumerable#index_byNicholas Seckar2006-06-242-0/+25
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4491 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Cant use separate module [DHH]David Heinemeier Hansson2006-06-241-2/+0
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4490 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added Enumerable#sum for calculating a sum from the elements [DHH]David Heinemeier Hansson2006-06-243-2/+28
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4489 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Mongrel support for script/server. Closes #5475.Jeremy Kemper2006-06-233-7/+58
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4486 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Correct and clarify Array#to_sentence docs. Closes #5458.Jeremy Kemper2006-06-222-2/+4
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4485 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Get thereJeremy Kemper2006-06-211-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4484 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* preserve chained method punctuationJeremy Kemper2006-06-211-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4483 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* alias_method_chain preserves method punctuation so foo, foo?, and foo! may ↵Jeremy Kemper2006-06-213-4/+22
| | | | | | be chained with the same feature. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4482 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* prefer sibling actionpackJeremy Kemper2006-06-211-5/+4
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4481 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* documentation fixes for ActionController::Verification::ClassMethods verify ↵Rick Olson2006-06-211-5/+10
| | | | | | method. Closes #4310. [oleg.frolov@gmail.com] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4479 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix in auto_complete_result documentation. closes #5096. [medlar@medlar.it]Rick Olson2006-06-211-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4478 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Don't use keywords as local vars in documentation. Closes #5291. ↵Rick Olson2006-06-211-4/+4
| | | | | | [jeremy@planetargon.com] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4477 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix indent in pagination documentation. Closes #4990. [Kevin Clark]Rick Olson2006-06-211-2/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4476 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Remove some cruft from the framework:update:configs task and fix the ↵Rick Olson2006-06-211-3/+1
| | | | | | documentation. Closes #5300. [jeremy@planetargon.com] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4475 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Determine the correct template_root for deeply nested components. Closes #2841.Jeremy Kemper2006-06-213-3/+24
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4474 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added find_or_initialize_by_X which works like find_or_create_by_X but ↵Sam Stephenson2006-06-203-2/+30
| | | | | | doesn't save the newly instantiated record git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4473 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* r4669@asus: jeremy | 2006-06-20 12:53:36 -0700Jeremy Kemper2006-06-201-21/+35
| | | | | | | Getting picayune with locking_test. Closes #4871. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4472 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Include rails -v / rails --version in app generator usage. Closes #5440.Jeremy Kemper2006-06-201-1/+5
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4471 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* r4667@asus: jeremy | 2006-06-20 00:59:15 -0700Jeremy Kemper2006-06-201-1/+1
| | | | | | | tpyo git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4463 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* r4664@asus: jeremy | 2006-06-19 18:55:36 -0700Jeremy Kemper2006-06-206-6/+105
| | | | | | | Use the #lock method to obtain a row lock on a single record. Simply reloads the record with :lock => true. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4462 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* r4663@asus: jeremy | 2006-06-19 17:23:57 -0700Jeremy Kemper2006-06-202-63/+70
| | | | | | | ActiveRecord::Locking is now ActiveRecord::Locking::Optimistic (to make way for Pessimistic.) git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4461 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* r4644@asus: jeremy | 2006-06-16 14:57:03 -0700Jeremy Kemper2006-06-1911-120/+273
| | | | | | | | | | | | | | | | | | | | | locking r4645@asus: jeremy | 2006-06-17 12:41:30 -0700 missing reply fixture r4646@asus: jeremy | 2006-06-19 13:05:23 -0700 Use a per-thread (rather than global) transaction mutex so you may execute concurrent transactions on separate connections. r4647@asus: jeremy | 2006-06-19 13:07:23 -0700 PostgreSQL: introduce allow_concurrency option which determines whether to use blocking or asynchronous #execute. Adapters with blocking #execute will deadlock Ruby threads. The default value is ActiveRecord::Base.allow_concurrency. r4648@asus: jeremy | 2006-06-19 13:08:40 -0700 Pass the default allow_concurrency when instantiating new connections. r4649@asus: jeremy | 2006-06-19 13:11:12 -0700 Break out concurrent transaction tests and run them for PostgreSQLAdapter only (need to fork or system('some_test_script') for the other adapters) r4650@asus: jeremy | 2006-06-19 13:42:48 -0700 Row locking. Provide a locking clause with the :lock finder option or true for the default "FOR UPDATE". r4661@asus: jeremy | 2006-06-19 15:36:51 -0700 excise the junk mutex git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4460 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Change AR::Base#to_param to return a String instead of a Fixnum. Closes #5320.Nicholas Seckar2006-06-193-2/+8
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4459 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Enhance Symbol#to_proc so it works with list objects, such as ↵Rick Olson2006-06-173-1/+8
| | | | | | 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
* Fix that routes with *path segments in the recall can generate URLs. [Rick]Rick Olson2006-06-173-1/+12
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4454 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added Hash.create_from_xml(string) which will create a hash from a XML ↵David Heinemeier Hansson2006-06-167-143/+236
| | | | | | string and even typecast if possible [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4453 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added Jim Weirich's excellent FlexMock class to vendor (Copyright 2003, 2004 ↵David Heinemeier Hansson2006-06-162-0/+86
| | | | | | by Jim Weirich (jim@weriichhouse.org)) -- it's not automatically required, though, so require 'flexmock' is still necessary [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4452 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* add passing test to make sure unhandled requests don't load unnecessary ↵Rick Olson2006-06-161-6/+23
| | | | | | classes. Closed #5408. [nkriege@hotmail.com] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4451 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix script/plugin so it doesn't barf on invalid URLs [Rick]Rick Olson2006-06-122-6/+12
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4450 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix plugin install bug at dir with space. (closes #5359) [Yoshimasa NIWA]Rick Olson2006-06-112-1/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4449 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix bug with 'script/plugin install' so it reports unknown plugin names ↵Rick Olson2006-06-092-1/+3
| | | | | | correctly. [Rick] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4447 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix strip_links so that it doesn't hang on multi-line acronym tagsJamis Buck2006-06-082-1/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4446 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Remove problematic control chars in rescue template. (closes #5316)Jamis Buck2006-06-082-4/+6
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4445 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Make sure passed routing options are not mutated by routing code. (closes #5314)Jamis Buck2006-06-073-7/+28
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4444 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Do some path normalization to prevent the possible_controllers list from ↵Jamis Buck2006-06-072-6/+43
| | | | | | containing invalid entries git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4443 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Make sure named routes are never generated relative to some containing moduleJamis Buck2006-06-062-2/+25
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4442 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Improve parameter expiry handling to fix sticky-id issue. Add a more ↵Jamis Buck2006-06-062-9/+64
| | | | | | informative Route#to_s method. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4441 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Include uninstall.rb (closes #5003)David Heinemeier Hansson2006-06-061-0/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4440 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Remove dependency on Pathname in new routesJamis Buck2006-06-051-2/+0
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4439 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Make sure changing the controller from foo/bar to bing/bang does not change ↵Jamis Buck2006-06-053-1/+12
| | | | | | relative to foo. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4438 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Use explicit delegation instead of method aliasing for AR::Base.to_param -> ↵Jamis Buck2006-06-052-1/+6
| | | | | | AR::Base.id. (closes #5299) git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4437 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Escape the entire path before trying to recognize it (closes #3671)Jamis Buck2006-06-053-1/+13
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4436 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Make sure :id and friends are properly unescaped (closes #5275).Jamis Buck2006-06-053-1/+22
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4435 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Make sure regexp chunks are grouped when the segment has a regexp constraint ↵Jamis Buck2006-06-052-1/+24
| | | | | | so that captures are counted correctly (closes #5267) git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4434 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix documentation for with_routing to reflect new reality (closes #5281)Jamis Buck2006-06-052-7/+11
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4433 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
* Refactored ActiveRecord::Base.to_xml to become a delegate for XmlSerializer, ↵David Heinemeier Hansson2006-06-045-275/+325
| | | | | | which restores sanity to the mega method. This refactoring also reinstates the opinions that type="string" is redundant and ugly and nil-differentiation is not a concern of serialization [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4431 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-033-10/+40
| | | | | | 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