aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
Commit message (Collapse)AuthorAgeFilesLines
* Prefer to instantiate fixtures with model classes instead of their names, ↵Jeremy Kemper2008-01-051-13/+14
| | | | | | avoiding excess constant lookups. Closes #10677 [nwilmes] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8561 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* 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-043-2/+11
| | | | | | 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
* Ruby 1.9 compat: test multibyte chars proxy for 1.8 onlyJeremy Kemper2008-01-041-12/+14
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8553 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Moved the caching stores from ActionController::Caching::Fragments::* to ↵David Heinemeier Hansson2008-01-032-0/+18
| | | | | | 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-032-1/+3
| | | | | | [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
* Remove toplevel rubyforgepublisher require for new RakeJeremy Kemper2008-01-031-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8539 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added by parameter to increment, decrement, and their bang varieties so you ↵David Heinemeier Hansson2008-01-033-10/+30
| | | | | | 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-022-2/+10
| | | | | | 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-022-2/+4
| | | | | | 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-293-9/+9
| | | | | | 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-283-6/+42
| | | | | | Closes #6822 [stopdropandrew, canadaduane] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8504 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Ruby 1.9 compat: introduce instance_variable_names. Closes #10630 [Frederick ↵Jeremy Kemper2007-12-281-1/+1
| | | | | | Cheung] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8499 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-272-41/+48
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8487 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Ruby 1.9 compat: attribute methodsJeremy Kemper2007-12-272-3/+4
| | | | 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-2215-237/+282
| | | | | | 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-214-4/+11
| | | | | | 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-212-4/+57
| | | | | | 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-203-6/+53
| | | | | | Closes #10576. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8453 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* add passing test for Test::Unit subclasses running #setup properly [brynary]Rick Olson2007-12-191-0/+24
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8445 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Revert [8392]. Closes #10568, reopens #10379.Jeremy Kemper2007-12-192-29/+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-193-11/+21
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8439 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* RubyGems 0.9.5 compat: always set the gem platformJeremy Kemper2007-12-191-0/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8438 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-163-3/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8419 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* More changelog updatesJeremy Kemper2007-12-151-2/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8411 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Ensure optimistic locking handles nil #lock_version values properly. Closes ↵Rick Olson2007-12-153-1/+12
| | | | | | #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-153-2/+31
| | | | | | 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-123-2/+18
| | | | | | 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-114-1/+12
| | | | | | 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-113-4/+13
| | | | | | #10458. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8375 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Remove references to ActsAs* from the README now that it's been pulled out ↵Marcel Molina2007-12-101-14/+0
| | | | | | into a plugin. Closes #10451 [sjgman9] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8371 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Update destroy_all and delete_all documentation to better describe their ↵Jeremy Kemper2007-12-102-5/+28
| | | | | | tradeoffs. Closes #10447. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8367 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Ruby 1.9 compat: File.exists\? -> File.exist\? en masse. References #1689 ↵Jeremy Kemper2007-12-102-3/+3
| | | | | | [Pratik Naik] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8365 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Document Active Record exceptions. Closes #10444.Jeremy Kemper2007-12-102-91/+157
| | | | 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
* More changelog updatesJeremy Kemper2007-12-101-1/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8359 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* More changelog updatesJeremy Kemper2007-12-101-13/+13
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8357 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
* Remove empty ar_joins_testJeremy Kemper2007-12-101-0/+0
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8353 5ecf4fe2-1ee6-0310-87b1-e25e094e27de