aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Added validates_associated that enables validation of objects in an unsaved ↵David Heinemeier Hansson2005-01-153-0/+63
| | | | | | association #398 [Tim Bates] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@418 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added support for associating unsaved objects #402 [Tim Bates]David Heinemeier Hansson2005-01-1515-307/+800
| | | | | | | | | 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
* Fixed log file permissions to be 666 instead of 777 (so they're not ↵David Heinemeier Hansson2005-01-155-5/+7
| | | | | | executable) #471 [Lucas Carlson] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@416 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Dont polute the load path more than necessaryDavid Heinemeier Hansson2005-01-152-5/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@415 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added the meat for String inflectionDavid Heinemeier Hansson2005-01-154-0/+249
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@414 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Missing something from #475David Heinemeier Hansson2005-01-151-0/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@413 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added availability of class inheritable attributes to the masses #477 [bitsweat]David Heinemeier Hansson2005-01-152-33/+122
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@412 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added a bit more documentation on how to use the instance methods for ↵David Heinemeier Hansson2005-01-151-11/+14
| | | | | | acts_as_list #478 git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@411 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed binary support for PostgreSQL #444 [alex@byzantine.no]David Heinemeier Hansson2005-01-152-1/+31
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@410 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added Inflections as an extension on String, so ↵David Heinemeier Hansson2005-01-151-0/+2
| | | | | | Inflector.pluralize(Inflector.classify(name)) becomes name.classify.pluralize #476 [bitsweat] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@409 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that auto reloading would some times not work or would reload the ↵David Heinemeier Hansson2005-01-152-50/+62
| | | | | | models twice #475 [Tobias Luetke] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@408 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed page caching problems with saving cached file fails for the index ↵David Heinemeier Hansson2005-01-153-11/+51
| | | | | | action and that it shouldnt cache files with GET/POST parameters #462 git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@407 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Removed silly change caused by inability to grok own code at 3 amDavid Heinemeier Hansson2005-01-141-8/+8
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@406 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Changed add_to_list_top and add_to_list_bottom to be publicDavid Heinemeier Hansson2005-01-141-10/+10
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@405 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added the option to specify a controller name to "generate scaffold" and ↵David Heinemeier Hansson2005-01-136-19/+34
| | | | | | made the default controller name the plural form of the model. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@404 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added arrays as a value option for params in url_for and friends #467 [Eric ↵David Heinemeier Hansson2005-01-133-2/+23
| | | | | | Anderson] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@403 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that controller tests can now assert on the use of cookies #466 [Alexey]David Heinemeier Hansson2005-01-132-0/+11
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@402 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Refactored ActiveRecord::Base#clone to use Base#attributes #463 [atyp]David Heinemeier Hansson2005-01-131-11/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@401 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that send_file would "remember" all the files sent by adding to the ↵David Heinemeier Hansson2005-01-133-4/+30
| | | | | | headers again and again #458 [bitsweat] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@400 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that bcc and cc should be settable through @bcc and @cc -- not just ↵David Heinemeier Hansson2005-01-134-8/+56
| | | | | | @headers["Bcc"] and @headers["Cc"] #453 [Eric Hodel]. Fixed Action Mailer to be "warnings safe" so you can run with ruby -w and not get framework warnings #453 [Eric Hodel] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@399 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed url rewriter confusion when the controller or action name was a ↵David Heinemeier Hansson2005-01-123-9/+35
| | | | | | substring of the controller_prefix or action_prefix git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@398 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed url rewriter confusion when the controller name was a substring of the ↵David Heinemeier Hansson2005-01-123-3/+16
| | | | | | controller_prefix git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@397 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Remove length alias of sizeDavid Heinemeier Hansson2005-01-111-2/+0
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@396 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed the half applied 393 changesetDavid Heinemeier Hansson2005-01-119-81/+183
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@395 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added option to turn off cachingDavid Heinemeier Hansson2005-01-111-1/+16
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@394 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added Byte operations to Numeric, so 5.5.megabytes + 200.kilobytes #461 ↵David Heinemeier Hansson2005-01-115-59/+36
| | | | | | [Marcel Molina] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@393 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added a differenciation between AssociationCollection#size and -length. Now ↵David Heinemeier Hansson2005-01-112-1/+15
| | | | | | AssociationCollection#size returns the size of the collection by executing a SELECT COUNT(*) query if the collection hasn't been loaded and calling collection.size if it has. If it's more likely than not that the collection does have a size larger than zero and you need to fetch that collection afterwards, it'll take one less SELECT query if you use length. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@392 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed the 4.11 changes to the mysql adapterDavid Heinemeier Hansson2005-01-112-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@391 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Tweaks and tinkeringDavid Heinemeier Hansson2005-01-111-5/+10
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@390 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Updated to new naming styleDavid Heinemeier Hansson2005-01-111-2/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@389 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@388 ↵David Heinemeier Hansson2005-01-112-0/+6
| | | | 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added conditional layouts like <tt>layout "weblog_standard", :except => ↵David Heinemeier Hansson2005-01-112-21/+65
| | | | | | :rss</tt> #452 [Marcel Molina] -- We are still missing unit tests for layouts in general, so please do contribute if you want some testing workout git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@387 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added Base#attributes that returns a hash of all the attributes with their ↵David Heinemeier Hansson2005-01-113-1/+20
| | | | | | names as keys and clones of their objects as values #433 [atyp.de] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@386 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added MemCacheStore to fragment caching #449 [Lucas Carlson]David Heinemeier Hansson2005-01-111-0/+6
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@385 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that MemCacheStore wasn't included by default and added default ↵David Heinemeier Hansson2005-01-113-1/+4
| | | | | | MemCache object pointing to localhost #447 [Lucas Carlson] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@384 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added fourth argument to render_collection_of_partials that allows you to ↵David Heinemeier Hansson2005-01-112-2/+4
| | | | | | specify local_assigns -- just like render_partial #432 [zenspider] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@383 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that foreign keys named the same as the association would cause stack ↵David Heinemeier Hansson2005-01-118-4/+36
| | | | | | overflow #437 [Eric Anderson] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@382 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that host would choke when cgi.host returned nil #432 [Tobias Luetke]David Heinemeier Hansson2005-01-112-1/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@381 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed default scope of acts_as_list from "1" to "1 = 1", so itll work in ↵David Heinemeier Hansson2005-01-112-1/+3
| | | | | | PostgreSQL (among other places) #427 [Alexey] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@380 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added that rake clone_structure_to_test, db_structure_dump, and ↵David Heinemeier Hansson2005-01-113-14/+17
| | | | | | purge_test_database tasks now pick up the source database to use from RAILS_ENV instead of just forcing development #424 [Tobias Luetke] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@379 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added that form helpers now take an index option #448 [Tim Bates]David Heinemeier Hansson2005-01-102-2/+33
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@378 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that Dependencies.reload can't load the same file twice #420 [Kent ↵David Heinemeier Hansson2005-01-102-1/+3
| | | | | | Sibilev] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@377 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added Base#reload that reloads the attributes of an object from the database ↵David Heinemeier Hansson2005-01-103-2/+20
| | | | | | #422 [Andreas Schwarz] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@376 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed script/console to work with Windows (that requires the use of irb.bat) ↵David Heinemeier Hansson2005-01-102-2/+9
| | | | | | #418 [octopod] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@375 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added SQLite3 compatibility through the sqlite3-ruby adapter by Jamis Buck ↵David Heinemeier Hansson2005-01-107-86/+153
| | | | | | #381 [bitsweat] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@374 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed random ordering of test cases that would cause errors on some systems ↵David Heinemeier Hansson2005-01-101-2/+5
| | | | | | #446 [Josh] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@373 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added support for the new protocol spoken by MySQL 4.1.1+ servers for the ↵David Heinemeier Hansson2005-01-103-0/+321
| | | | | | Ruby/MySQL adapter that ships with Rails #440 [Matt Mower] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@372 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added Fixnum#ago/until, Fixnum#since/from_now #450 [bitsweat]David Heinemeier Hansson2005-01-103-5/+30
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@371 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed three issues with retrying breakpoints #417 [Florian Gross]David Heinemeier Hansson2005-01-102-4/+14
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@370 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Some missing docsDavid Heinemeier Hansson2005-01-103-4/+18
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@369 5ecf4fe2-1ee6-0310-87b1-e25e094e27de