aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record
Commit message (Collapse)AuthorAgeFilesLines
* Cache fixture model class. References #10677 [nwilmes]Jeremy Kemper2008-01-051-2/+10
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8560 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Document that eager loading doesn't work with polymorphic associations. ↵Jeremy Kemper2008-01-041-0/+17
| | | | | | Closes #10610 [Xavier Noria] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8556 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* pdate_all ignores scoped :order and :limit, so post.comments.update_all ↵Jeremy Kemper2008-01-041-2/+2
| | | | | | doesn't try to include the comment order in the update statement. Closes #10686. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8554 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Moved the caching stores from ActionController::Caching::Fragments::* to ↵David Heinemeier Hansson2008-01-031-0/+16
| | | | | | ActiveSupport::Cache::*. If you're explicitly referring to a store, like ActionController::Caching::Fragments::MemoryStore, you need to update that reference with ActiveSupport::Cache::MemoryStore [DHH] Deprecated ActionController::Base.fragment_cache_store for ActionController::Base.cache_store [DHH] All fragment cache keys are now by default prefixed with the 'views/' namespace [DHH] Added ActiveRecord::Base.cache_key to make it easier to cache Active Records in combination with the new ActiveSupport::Cache::* libraries [DHH] Added ActiveSupport::Gzip.decompress/compress(source) as an easy wrapper for Zlib [Tobias Luetke] Included MemCache-Client to make the improved ActiveSupport::Cache::MemCacheStore work out of the box [Bob Cottrell, Eric Hodel] Added config.cache_store to environment options to control the default cache store (default is FileStore if tmp/cache is present, otherwise MemoryStore is used) [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8546 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Ruby 1.9: Forwards compatibility change for fixtures and the new CSV module ↵Michael Koziarski2008-01-031-1/+1
| | | | | | [JEG2] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8544 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Ruby 1.9 compat: don't use obsolete ParseDateJeremy Kemper2008-01-031-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8540 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added by parameter to increment, decrement, and their bang varieties so you ↵David Heinemeier Hansson2008-01-031-10/+10
| | | | | | can do player1.increment!(:points, 5) (closes #10542) [Sam] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8534 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Optimize ActiveRecord::Base#exists? to use #select_all instead of #find. ↵Rick Olson2008-01-021-2/+8
| | | | | | Closes #10605 [jamesh, fcheung, protocool] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8531 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* 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