aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib
Commit message (Collapse)AuthorAgeFilesLines
* Ruby 1.9 compat: fix two failing tests since String#each has been removed. ↵Jeremy Kemper2008-01-021-1/+3
| | | | | | Closes #10655. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8524 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Ruby 1.9 compat: introduce ActiveSupport::FrozenObjectError normalize ↵Jeremy Kemper2007-12-291-1/+1
| | | | | | TypeError vs RuntimeError handling. Closes #10645 [Frederick Cheung] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8510 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Ruby 1.9 compat: workaround module_eval bug. Closes #10641 [Frederick Cheung]Jeremy Kemper2007-12-291-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8507 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Don't unnecessarily load has_many associations in after_update callbacks. ↵Rick Olson2007-12-281-1/+5
| | | | | | Closes #6822 [stopdropandrew, canadaduane] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8504 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Use extract_options! rather than Hash test + pop. Closes #10628 [ssoroka]Jeremy Kemper2007-12-281-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8496 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Ruby 1.9 compat: calculations don't assume array implementation of ordered ↵Jeremy Kemper2007-12-271-1/+2
| | | | | | hash. References #1689 [Frederick Cheung] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8494 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Ruby 1.9 compat: don't modify iterator target within blockJeremy Kemper2007-12-271-3/+6
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8487 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Ruby 1.9 compat: attribute methodsJeremy Kemper2007-12-271-2/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8486 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Remove leaky unused signal handler for transactions.Jeremy Kemper2007-12-221-2/+0
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8484 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Ruby 1.9 compat: fix warnings, shadowed block vars, and unitialized instance ↵Jeremy Kemper2007-12-2211-231/+272
| | | | | | vars git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8481 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Ruby 1.9 compat: Fixtures inherits Hash instead of YAML::Omap since it's now ↵Jeremy Kemper2007-12-221-2/+2
| | | | | | insertion-ordered. Work around a &:procname crash. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8480 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Ruby 1.9 compat: Class#subclasses is now protectedJeremy Kemper2007-12-221-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8478 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Eager belongs_to :include infers the foreign key from the association name ↵Jeremy Kemper2007-12-211-3/+3
| | | | | | rather than the class name. Closes #10517. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8456 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Benchmark logs for any level below or equal to the one specified, rather ↵Jeremy Kemper2007-12-211-4/+4
| | | | | | than just equal. Closes #10580 [Dan Manges] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8455 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* SQLite: fix rename_ and remove_column for columns with unique indexes. ↵Jeremy Kemper2007-12-201-6/+13
| | | | | | Closes #10576. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8453 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Revert [8392]. Closes #10568, reopens #10379.Jeremy Kemper2007-12-191-13/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8442 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Ruby 1.9 compat: check column type more carefullyJeremy Kemper2007-12-192-11/+16
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8439 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Ruby 1.9 compat: move from the deprecated Base64 module to ↵Jeremy Kemper2007-12-181-1/+0
| | | | | | ActiveSupport::Base64. Closes #10554. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8433 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Prepare for 2.0.2 releaseDavid Heinemeier Hansson2007-12-161-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8419 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Ensure optimistic locking handles nil #lock_version values properly. Closes ↵Rick Olson2007-12-151-1/+1
| | | | | | #10510 [rick] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8395 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Make the Fixtures Test::Unit enhancements more supporting for double-loaded ↵Rick Olson2007-12-151-2/+13
| | | | | | test cases. Closes #10379 [brynary] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8392 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Remove references to nonexistent :joins documentation. Closes #10498 [tpope]Marcel Molina2007-12-132-8/+5
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8381 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Document what to pass the :accept option for validates_acceptance_of when ↵Marcel Molina2007-12-131-1/+2
| | | | | | mapping the attribute to an actual column (rather than a virtual one). Closes #10491 [xaviershay] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8379 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix that validates_acceptance_of still works for non-existent tables (useful ↵Rick Olson2007-12-121-2/+8
| | | | | | for bootstrapping new databases). Closes #10474 [hasmanyjosh] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8377 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Ensure that the :uniq option for has_many :through associations retains the ↵Rick Olson2007-12-111-1/+2
| | | | | | order. #10463 [remvee] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8376 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Base.exists? doesn't rescue exceptions to avoid hiding SQL errors. Closes ↵Jeremy Kemper2007-12-111-3/+2
| | | | | | #10458. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8375 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Update destroy_all and delete_all documentation to better describe their ↵Jeremy Kemper2007-12-101-4/+27
| | | | | | tradeoffs. Closes #10447. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8367 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Document Active Record exceptions. Closes #10444.Jeremy Kemper2007-12-101-91/+152
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8362 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Remove unused ConnectionFailed exceptionJeremy Kemper2007-12-101-2/+0
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8361 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Axe outdated :ar_joins commentaryJeremy Kemper2007-12-101-7/+0
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8354 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* post.comments.reload returns the association rather than the result of ↵Jeremy Kemper2007-12-101-14/+15
| | | | | | load_target. Closes #10438 [Fred Cheung] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8347 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Document the validates class method. Closes #10216 [Farley Knight]Jeremy Kemper2007-12-101-1/+27
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8345 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Be careful not to reference ActiveRecord if it isn't loaded, fixing rake ↵Jeremy Kemper2007-12-091-1/+6
| | | | | | test when you're working without a database. [eedn] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8339 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Make ready for 2.0.1David Heinemeier Hansson2007-12-071-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8330 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Removed query cache rescue as it could cause code to be run twice (closes ↵David Heinemeier Hansson2007-12-071-2/+0
| | | | | | #10408) [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8329 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that the Query Cache should just be ignored if the database is ↵David Heinemeier Hansson2007-12-061-0/+2
| | | | | | misconfigured (so that the "About your applications environment" works even before the database has been created) [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8325 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* The test task stops with a warning if you have pending migrations. Closes ↵Jeremy Kemper2007-12-061-0/+4
| | | | | | #10377. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8324 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Preparing for release shortlyDavid Heinemeier Hansson2007-12-061-3/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8321 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that the truncation of strings longer than 50 chars should use inspect ↵David Heinemeier Hansson2007-12-061-1/+1
| | | | | | so newlines etc are escaped (closes #10385) [norbert] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8319 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that habtm associations should be able to set :select as part of their ↵David Heinemeier Hansson2007-12-051-2/+2
| | | | | | definition and have that honored [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8313 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Document how the :include option can be used in Calculations::calculate. ↵Marcel Molina2007-12-051-0/+2
| | | | | | Closes #7446 [adamwiggins, ultimoamore] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8306 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix typo in documentation for polymorphic associations w/STI. Closes #7461 ↵Marcel Molina2007-12-051-2/+2
| | | | | | [johnjosephbachir] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8305 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Reveal that the type option in migrations can be any supported column type ↵Marcel Molina2007-12-051-1/+6
| | | | | | for your database but also include caveat about agnosticism. Closes #7531 [adamwiggins, mikong] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8304 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix typos (closes #10378)David Heinemeier Hansson2007-12-055-5/+5
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8301 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* More complete documentation for find_by_sql. Closes #7912 [fearoffish]Marcel Molina2007-12-051-3/+23
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8298 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Document API for exists?'s parameter and provide examples of usage. Closes ↵Marcel Molina2007-12-051-3/+12
| | | | | | #7913 [fearoffish] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8297 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Document API for create's attributes parameter and provide examples. Closes ↵Marcel Molina2007-12-051-2/+11
| | | | | | #7915 [fearoffish] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8296 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Documentation for find incorrectly omits the :conditions option from various ↵Marcel Molina2007-12-051-4/+4
| | | | | | examples. Closes #7923 [mattwestcott] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8295 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Document options and add examples for update. Closes #7985 [fearoffish]Marcel Molina2007-12-051-6/+10
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8293 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Document options and add examples for delete. Closes #7986 [fearoffish]Marcel Molina2007-12-051-2/+18
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8292 5ecf4fe2-1ee6-0310-87b1-e25e094e27de