aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record
Commit message (Collapse)AuthorAgeFilesLines
* Don't call attr_readonly on polymorphic belongs_to associations, in case it ↵Rick Olson2007-10-051-1/+1
| | | | | | matches the name of some other non-ActiveRecord class/module. [Rick] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7748 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Bump versions for 1.2.4 release.Jeremy Kemper2007-10-051-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7744 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Hash#to_json takes :only or :except options to specific or omit certain hash ↵Jeremy Kemper2007-10-041-1/+1
| | | | | | keys. Enumerable#to_json passes through its options to each element. Closes #9751. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7736 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Try loading activerecord-<adaptername>-adapter gem before trying a plain ↵Jeremy Kemper2007-10-041-8/+3
| | | | | | require so you can use custom gems for the bundled adapters. Also stops gems from requiring an adapter from an old Active Record gem. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7735 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* only create custom accessors for Kernel:: methodsTobias Lütke2007-10-031-11/+4
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7731 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Allow column accessors to be created even if Kernel. or Object# methods of ↵Tobias Lütke2007-10-031-4/+15
| | | | | | the same name exist. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7729 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Cache the descends_from_activerecord? call to speed up query generation. ↵Michael Koziarski2007-10-031-3/+8
| | | | | | [skaes] Closes #9765 git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7723 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add attr_readonly to specify columns that are skipped during a normal ↵Rick Olson2007-09-302-4/+27
| | | | | | ActiveRecord #save operation. Closes #6896 [dcmanges] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7693 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Make size for has_many :through use counter cache if it exists. Closes ↵Rick Olson2007-09-301-1/+11
| | | | | | #9734 [xaviershay] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7692 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Don't implicitly assign instance variables by using them as block argumentsJeremy Kemper2007-09-301-1/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7691 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Remove DB2 adapter since IBM chooses to maintain their own adapter instead.Jeremy Kemper2007-09-291-242/+0
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7690 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Extract Oracle, SQLServer, and Sybase adapters into gems.Jeremy Kemper2007-09-293-2007/+0
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7689 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Ruby 1.9 compat for instance method check in Mysql adapter.Jeremy Kemper2007-09-291-1/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7688 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixtures test fixes and general cleanup. Closes #9682 [norbert]Jeremy Kemper2007-09-281-97/+91
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7667 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed spelling errors (closes #9706) [tarmo/rmm5t]David Heinemeier Hansson2007-09-2810-16/+16
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7666 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* MySQL: change_column raises if the table or column doesn't exist.Jeremy Kemper2007-09-281-1/+5
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7665 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added :include option to to_json (closes #9677) [chuyeow]David Heinemeier Hansson2007-09-282-62/+83
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7663 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added fixture caching thatll speed up a normal fixture-powered test suite ↵David Heinemeier Hansson2007-09-281-15/+56
| | | | | | between 50% and 100% (closes #9682) [frederick.cheung@gmail.com] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7662 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Correctly quote id list for limited eager loading. Closes #7482.Jeremy Kemper2007-09-221-2/+4
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7588 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* self.fixture_class_names is defined twice in fixtures.rb (closes #7135) [jarkko]David Heinemeier Hansson2007-09-221-3/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7584 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Removed unnecessary or statement (closes #7158) [richcollins]David Heinemeier Hansson2007-09-221-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7583 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that using version-targetted migrates would fail on loggers other than ↵David Heinemeier Hansson2007-09-221-1/+5
| | | | | | the default one (closes #7430) [valeksenko] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7577 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Docfix (closes #7593) [tarmo]David Heinemeier Hansson2007-09-221-2/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7570 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed rename_column for SQLite when using symbols for the column names ↵David Heinemeier Hansson2007-09-221-2/+3
| | | | | | (closes #8616) [drodriguez] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7563 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Docfix (closes #8767) [kampers]David Heinemeier Hansson2007-09-221-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7561 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Removed unused @join_sql reference (closes #9174) [danger]David Heinemeier Hansson2007-09-221-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7554 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Doc fix (closes #9323) [Henrik N]David Heinemeier Hansson2007-09-221-2/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7549 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added the possibility of using symbols in addition to concrete classes with ↵David Heinemeier Hansson2007-09-221-3/+5
| | | | | | ActiveRecord::Observer#observe #3998 [robbyrussell/tarmo] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7539 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Stress that you should really install the C-based MySQL library when running ↵David Heinemeier Hansson2007-09-201-0/+5
| | | | | | on the pure Ruby one (closes #9507) git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7521 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added ActiveRecord::Base#to_json/from_json (currently does not support ↵David Heinemeier Hansson2007-09-204-22/+87
| | | | | | :include like to_xml) [DHH]. Added ActiveRecord::Base#from_xml [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7519 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Stop users from calling .create on a has_many / habtm association when the ↵Michael Koziarski2007-09-182-3/+29
| | | | | | owner is a new_record? git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7511 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Define dynamic finders as real methods after first usage. Close #9317Tobias Lütke2007-09-181-28/+31
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7510 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Deprecation: remove deprecated threaded_connections methods. Use ↵Jeremy Kemper2007-09-181-10/+0
| | | | | | allow_concurrency instead. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7509 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Associations macros accept extension blocks alongside modules. Closes #9346.Jeremy Kemper2007-09-171-6/+6
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7504 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Don't worry about retrieving the last inserted id. [tarmo_t]Jeremy Kemper2007-09-171-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7503 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Ensure that custom mutators aren't redefined by define_attribute_methods. [Koz]Michael Koziarski2007-09-171-3/+10
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7500 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Speed up and simplify query caching.Jeremy Kemper2007-09-1711-175/+169
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7498 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* connection.select_rows 'sql' returns an array (rows) of arrays (field ↵Jeremy Kemper2007-09-166-9/+79
| | | | | | values). Closes #2329. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7497 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Eager loading respects explicit :joins. Closes #9496.Jeremy Kemper2007-09-151-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7494 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Extract Firebird, FronBase, and OpenBase adapters into gems. Closes #9508, ↵Jeremy Kemper2007-09-153-2050/+0
| | | | | | #9509, #9510. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7492 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* RubyGem database adapters: expects a gem named ↵Jeremy Kemper2007-09-151-3/+19
| | | | | | activerecord-<database>-adapter with active_record/connection_adapters/<database>_adapter.rb in its load path. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7491 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that altering join tables in migrations would fail w/ sqlite3 #7453 ↵David Heinemeier Hansson2007-09-151-1/+2
| | | | | | [TimoMihaljov/brandon] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7484 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix association writer with :dependent => :nullify. Closes #7314.Jeremy Kemper2007-09-141-8/+11
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7477 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Deprecation: removed Reloadable.Jeremy Kemper2007-09-142-8/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7473 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* OpenBase: update for new lib and latest Rails. Support migrations. Closes #8748.Jeremy Kemper2007-09-131-119/+229
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7472 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* minor speedups + forward-compat syntaxJeremy Kemper2007-09-135-19/+24
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7471 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* minor speedupJeremy Kemper2007-09-131-2/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7469 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Remove empty actsJeremy Kemper2007-09-112-0/+0
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7459 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Moved acts_as_tree into a plugin of the same name on the official Rails svn ↵David Heinemeier Hansson2007-09-111-96/+0
| | | | | | (closes #9514) [lifofifo] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7454 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Moved acts_as_nested_set into a plugin of the same name on the official ↵David Heinemeier Hansson2007-09-111-211/+0
| | | | | | Rails svn (closed #9516) [josh] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7453 5ecf4fe2-1ee6-0310-87b1-e25e094e27de