10305 Commits

Author SHA1 Message Date
David Heinemeier Hansson
1a5bf720b2 Added @request.env['RAW_POST_DATA'] for people who need access to the data before Ruby's CGI has parsed it #505 [bitsweat]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@463 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-20 14:31:48 +00:00
David Heinemeier Hansson
2ee84cc6f9 Fixed that all redirect and render calls now return true, so you can use the pattern of "do and return". Added that renders and redirects called in before_filters will have the same effect as returning false: stopping the chain. Added that only one render or redirect can happen per action. The first call wins and subsequent calls are ignored.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@462 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-20 14:13:34 +00:00
David Heinemeier Hansson
91ff8352a4 Fixed that a default fragment store wan't being set to MemoryStore as intended
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@461 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-20 14:12:53 +00:00
David Heinemeier Hansson
2de7707e12 git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@459 5ecf4fe2-1ee6-0310-87b1-e25e094e27de 2005-01-18 14:17:52 +00:00
David Heinemeier Hansson
a5364fb3ac Made ready for release of 0.9.4.1
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@458 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-18 14:13:12 +00:00
David Heinemeier Hansson
3ebde40cec Cleanup the proxy rollback #492
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@457 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-18 14:06:49 +00:00
David Heinemeier Hansson
bce0e14930 Fixed that the belongs_to and has_one proxy would fail a test like 'if project.manager' -- this unfortunately also means that you can't call methods like project.manager.build unless there already is a manager on the project #492 [Tim Bates]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@456 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-18 11:07:03 +00:00
David Heinemeier Hansson
652f1ef02f Added 5-second timeout to WordNet alternatives on creating reserved-word models #501 [Marcel Molina]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@455 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-18 09:58:48 +00:00
David Heinemeier Hansson
53088c4c7f Fixed that the Ruby/MySQL adapter wouldn't connect if the password was empty #503 [Pelle]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@454 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-18 09:54:12 +00:00
David Heinemeier Hansson
cd3f14cf38 Fixed a bug where cookies wouldn't be set if a symbol was used instead of a string as the key
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@453 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-17 23:38:14 +00:00
David Heinemeier Hansson
6ca5eba396 Added assert_cookie_equal to assert the contents of a named cookie
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@452 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-17 23:24:47 +00:00
David Heinemeier Hansson
1f7e72ff51 Made human_attribute_name(attribute_key_name) use Inflector.humanize
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@451 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-17 19:58:02 +00:00
David Heinemeier Hansson
03e44cbcb2 Added Inflector.humanize to turn attribute names like employee_salary into "Employee salary". Used by automated error reporting in AR.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@450 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
v0.9.4.1
2005-01-17 19:55:21 +00:00
David Heinemeier Hansson
1b38c5523e Added Inflector.humanize to turn attribute names like employee_salary into "Employee salary". Used by automated error reporting in AR.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@449 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-17 19:53:42 +00:00
David Heinemeier Hansson
ecfe77f38d CHANGELOGs..
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@448 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-17 17:31:15 +00:00
David Heinemeier Hansson
4ec7a4b5b7 Fixed bug in page caching that prevented it from working at all
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@447 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-17 17:30:40 +00:00
David Heinemeier Hansson
baae5a1468 Fixed sending of emails to use Tmail#from not the deprecated Tmail#from_address
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@446 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-17 17:30:15 +00:00
David Heinemeier Hansson
58f920fecd Made methods class level methods again
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@445 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-17 17:01:35 +00:00
David Heinemeier Hansson
1e3b5b1fcb Tagged the 0.9.4 release
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@444 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-17 02:30:07 +00:00
David Heinemeier Hansson
e98a14012d Made more stuff quiet
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@443 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-17 01:40:22 +00:00
David Heinemeier Hansson
c1a1b0b938 Made more stuff quiet
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@442 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-17 01:35:50 +00:00
David Heinemeier Hansson
1dbb4adec1 Made a bunch of stuff quiet in the docs
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@441 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-17 01:29:45 +00:00
David Heinemeier Hansson
e1374f7b17 Made ready for release of 0.9.4
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@440 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-17 01:17:26 +00:00
David Heinemeier Hansson
ddcc400293 Made ready for release of 0.9.4
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@439 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-17 01:13:15 +00:00
David Heinemeier Hansson
9577f0f57c Fixed up some docs
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@438 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-17 01:05:14 +00:00
David Heinemeier Hansson
dd420ef303 Make sure #470 shouldnt be happening
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@437 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-17 01:01:21 +00:00
David Heinemeier Hansson
d598635988 Added test_forgetting_the_load_when_foreign_key_enters_late
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@436 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-17 00:44:55 +00:00
David Heinemeier Hansson
44ac6046c1 Only remember that an association was loaded if it was found
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@435 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-17 00:44:22 +00:00
David Heinemeier Hansson
8b82c5042d Test for #489
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@434 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-17 00:32:56 +00:00
David Heinemeier Hansson
1ae630a404 belongs_to association should always honor a present foreign key and condition interpolation should also be possible on belongs_to
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@433 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-17 00:30:53 +00:00
David Heinemeier Hansson
3b9be80a3a Removed debugging aid from dependencies
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@432 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
v0.9.4
2005-01-16 18:02:47 +00:00
David Heinemeier Hansson
92a29257b5 No need for reloading any more
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@431 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-16 17:58:54 +00:00
David Heinemeier Hansson
954fd97d00 New adventures in dependency reloading
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@430 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-16 17:56:42 +00:00
David Heinemeier Hansson
ee014ef95a New adventures in dependency reloading
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@429 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-16 17:50:36 +00:00
David Heinemeier Hansson
394cf21ce7 Minor tweaks
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@428 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-16 13:07:28 +00:00
David Heinemeier Hansson
9a33b9a737 Added more informative error message for "file not found" situation in send_file #484 [Alexey]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@427 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-16 13:06:15 +00:00
David Heinemeier Hansson
bc4156e09e Finished documentation for caching
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@426 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-15 22:16:41 +00:00
David Heinemeier Hansson
e59f1b5249 Went back to original breakpointing as I couldnt make the patches from flgr work
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@425 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-15 21:28:02 +00:00
David Heinemeier Hansson
c46e390920 Fixed some breakpoint issues and made breakpoint_client depend on activerecord/support instead of duplicating the files in railties #441 [Florian Gross]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@424 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-15 21:10:26 +00:00
David Heinemeier Hansson
fb13b7a495 Removed the Ruby 1.8.2 test/unit fix as it didnt work anyway
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@423 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-15 20:55:19 +00:00
David Heinemeier Hansson
c81af992e8 Added the option of passing a block to ActiveRecordHelper#form in order to add more to the auto-generated form #469 [dom@sisna.com]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@422 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-15 18:57:17 +00:00
David Heinemeier Hansson
31901a5939 Fixed errors thrown to namespace collision
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@421 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-15 18:28:10 +00:00
David Heinemeier Hansson
2aac6d90fe Flipped code-to-test ratio around to be more readable #468 [Scott Baron]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@420 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-15 18:19:51 +00:00
David Heinemeier Hansson
bb92382424 Fixed that unit tests for MySQL are now run as the "rails" user instead of root #455 [Eric Hodel]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@419 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-15 17:54:45 +00:00
David Heinemeier Hansson
51390b8524 Added validates_associated that enables validation of objects in an unsaved association #398 [Tim Bates]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@418 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-15 17:52:08 +00:00
David Heinemeier Hansson
823554eafe Added support for associating unsaved objects #402 [Tim Bates]
Added replace to associations, so you can do project.manager.replace(new_manager) or project.milestones.replace(new_milestones) #402 [Tim Bates]
Added build and create methods to has_one and belongs_to associations, so you can now do project.manager.build(attributes) #402 [Tim Bates]
Fixed that Base#== wouldn't work for multiple references to the same unsaved object #402 [Tim Bates]
Added that if a before_* callback returns false, all the later callbacks and the associated action are cancelled. If an after_* callback returns false, all the later callbacks are cancelled. Callbacks are generally run in the order they are defined, with the exception of callbacks defined as methods on the model, which are called last. #402 [Tim Bates]

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@417 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-15 17:45:16 +00:00
David Heinemeier Hansson
62f0512e54 Fixed log file permissions to be 666 instead of 777 (so they're not executable) #471 [Lucas Carlson]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@416 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-15 17:28:01 +00:00
David Heinemeier Hansson
f3965af649 Dont polute the load path more than necessary
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@415 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-15 17:03:31 +00:00
David Heinemeier Hansson
a66b321bb0 Added the meat for String inflection
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@414 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-15 16:48:12 +00:00
David Heinemeier Hansson
d8805988a1 Missing something from #475
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@413 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-15 16:46:17 +00:00