aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | | Fix backward compatibility with stored Hash values. Wrap coders to convert ↵Jeremy Kemper2012-05-301-2/+32
| | | | | | | | | | | | | | | | | | | | serialized values to indifferent access.
* | | | | Merge pull request #6477 from steveklabnik/close_discovered_pg_connectionRafael Mendonça França2012-05-301-1/+2
|\ \ \ \ \ | |_|/ / / |/| | | | Properly discover a connection is closed in postgresql_adapter
| * | | | Properly discover a connection is closed in postgresql_adapterSteve Klabnik2012-05-241-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | PQstatus doesn't properly test if future operations will succeed. A PQping function is added to libpq in PostgreSQL 9.1, but if we rely on it, everyone on earlier versions of Postgres is out of luck, and the pg gem wouldn't have the 'fix' until the next release. Thanks to @cbrecabarren and @ged for handling all the dirty details. Closes #3392.
* | | | | Merge pull request #5810 from kennyj/fix_5797Aaron Patterson2012-05-303-5/+6
|\ \ \ \ \ | | | | | | | | | | | | Fix #5797. Error calling dup method on AR model with serialized field
| * | | | | Fix #5797. Error calling dup method on AR model with serialized fieldkennyj2012-05-303-5/+6
| | | | | |
* | | | | | Merge pull request #6386 from kennyj/fix_logs_name_consistencyAaron Patterson2012-05-303-18/+15
|\ \ \ \ \ \ | | | | | | | | | | | | | | Fix logs name consistency.
| * | | | | | Fix logs name consistency.kennyj2012-05-193-18/+15
| | | | | | |
* | | | | | | Merge branch 'master' of github.com:lifo/docrailsVijay Dev2012-05-304-23/+33
|\ \ \ \ \ \ \ | |_|/ / / / / |/| | | | | |
| * | | | | | copy edit the batches docs [ci skip]Vijay Dev2012-05-301-9/+7
| | | | | | |
| * | | | | | change example on CollectionProxy#delete to accept multiple valuesFrancesco Rodriguez2012-05-281-1/+1
| | | | | | |
| * | | | | | Adds to Batch processing documentation [ci skip]Alvaro Pereyra2012-05-281-9/+20
| | | | | | |
| * | | | | | fix typo and remove 'examples' noise [ci skip]Francesco Rodriguez2012-05-281-18/+6
| | | | | | |
| * | | | | | Updates examples for FinderMethods [ci skip]Alvaro Pereyra2012-05-281-2/+14
| | | | | | |
| * | | | | | Merge branch 'master' of github.com:lifo/docrailsAlvaro Pereyra2012-05-2827-86/+715
| |\ \ \ \ \ \
| | * | | | | | "a sql" -> "an SQL" per API documentation guidelinesMark Rushakoff2012-05-271-1/+1
| | | | | | | |
| * | | | | | | Adds examples to FinderMethods#first [ci skip]Alvaro Pereyra2012-05-281-0/+1
| | | | | | | |
* | | | | | | | Fix #5847 and #4045 on master.kennyj2012-05-301-0/+2
| | | | | | | |
* | | | | | | | Use runner hook to load ActiveRecord::Base.kennyj2012-05-301-0/+4
| | | | | | | |
* | | | | | | | SchemaMigration should be loaded lazily.kennyj2012-05-293-2/+1
| | | | | | | |
* | | | | | | | Yield only one argument instead of splatting.Carlos Antonio da Silva2012-05-281-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add Changelog entry. Closes #4003
* | | | | | | | Allow blocks for count with ActiveRecord::Relation. Document and test that ↵chrisfinne2012-05-281-3/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | sum allows blocks
* | | | | | | | Add support for CollectionAssociation#delete by Fixnum or StringFrancesco Rodriguez2012-05-282-0/+27
| |/ / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I found the next issue between CollectionAssociation `delete` and `destroy`. class Person < ActiveRecord::Base has_many :pets end person.pets.destroy(1) # => OK, returns the destroyed object person.pets.destroy("2") # => OK, returns the destroyed object person.pets.delete(1) # => ActiveRecord::AssociationTypeMismatch person.pets.delete("2") # => ActiveRecord::AssociationTypeMismatch Adding support for deleting with a fixnum or string like `destroy` method.
* | | | | | | remove unnecessary ruby 1.8 reference from active_record/core [ci skip]Francesco Rodriguez2012-05-261-3/+4
| | | | | | |
* | | | | | | add CollectionProxy#uniq documentationFrancesco Rodriguez2012-05-261-0/+21
| | | | | | |
* | | | | | | Merge branch 'master' of github.com:lifo/docrailsVijay Dev2012-05-261-2/+188
|\ \ \ \ \ \ \
| * | | | | | | add :nodoc: to CollectionProxy#initializeFrancesco Rodriguez2012-05-251-1/+1
| | | | | | | |
| * | | | | | | add CollectionProxy#== documentationFrancesco Rodriguez2012-05-251-0/+24
| | | | | | | |
| * | | | | | | add CollectionProxy#count documentationFrancesco Rodriguez2012-05-251-0/+26
| | | | | | | |
| * | | | | | | add CollectionProxy#to_ary documentationFrancesco Rodriguez2012-05-251-2/+35
| | | | | | | |
| * | | | | | | add CollectionProxy#delete documentationFrancesco Rodriguez2012-05-251-1/+104
| | | | | | | |
* | | | | | | | Merge pull request #4132 from Juanmcuello/clone_structureAaron Patterson2012-05-251-0/+1
|\ \ \ \ \ \ \ \ | |_|_|_|_|_|/ / |/| | | | | | | Reset postgreSQL search path in db:test:clone_structure.
| * | | | | | | Reset postgreSQL search path in db:test:clone_structure.Juan M. Cuello2011-12-221-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch resets the postgres search path in the structure.sql after the structure is dumped in order to find schema_migrations table when multiples schemas are used. Fixes #945
* | | | | | | | Merge pull request #5872 from evtuhovich/prepared_statement_fixAaron Patterson2012-05-251-10/+10
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | Remove prepared statement from system query in postgresql adapter
| * | | | | | | | Remove prepared statement from system query in postgresql adapterIvan Evtukhovich2012-05-121-10/+10
| | | | | | | | |
* | | | | | | | | Merge pull request #5244 from fotos/myqsl2_wait_timeoutRafael Mendonça França2012-05-251-1/+1
|\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Maximum wait_timeout on Windows is 2147483
| * | | | | | | | | Maximum wait_timeout on Windows is 2147483Fotos Georgiadis2012-03-021-1/+1
| | | | | | | | | |
* | | | | | | | | | Merge pull request #5925 from Juanmcuello/pg_structure_dumpCarlos Antonio da Silva2012-05-241-2/+2
| |_|_|_|_|_|/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | Quote arguments in db:structure:dump for PostgreSQL.
* | | | | | | | | Whitespaces :scissors:Rafael Mendonça França2012-05-232-7/+7
| | | | | | | | |
* | | | | | | | | PGconn doesn't accepts :checkout_timeout option.Rafael Mendonça França2012-05-231-1/+1
| |_|_|/ / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This option was added on cb6f839359bd894feb0a1105b79af72b336aa41e renaming the :wait_timeout option. Fix build http://travis-ci.org/#!/rails/rails/jobs/1413405
* | | | | | | | Merge branch 'master' of github.com:lifo/docrailsVijay Dev2012-05-233-34/+463
|\ \ \ \ \ \ \ \
| * | | | | | | | copy edits in collection proxy docs [ci skip]Vijay Dev2012-05-231-25/+18
| | | | | | | | |
| * | | | | | | | Revert "Remove blank trailing comments"Vijay Dev2012-05-2318-0/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit fa6d921e11363e9b8c4bc10f7aed0b9faffdc33a. Reason: Not a fan of such massive changes. We usually close such changes if made to Rails master as a pull request. Following the same principle here and reverting. [ci skip]
| * | | | | | | | add CollectionProxy#length documentationFrancesco Rodriguez2012-05-221-5/+37
| | | | | | | | |
| * | | | | | | | add CollectionProxy#size documentationFrancesco Rodriguez2012-05-221-2/+25
| | | | | | | | |
| * | | | | | | | add :call-seq: to +first+ and +last+ CollectionProxy methodsFrancesco Rodriguez2012-05-221-0/+6
| | | | | | | | |
| * | | | | | | | add CollectionProxy#create! documentationFrancesco Rodriguez2012-05-221-0/+22
| | | | | | | | |
| * | | | | | | | add CollectionProxy#create documentationFrancesco Rodriguez2012-05-221-0/+33
| | | | | | | | |
| * | | | | | | | add more examples to CollectionProxy#findFrancesco Rodriguez2012-05-221-0/+9
| | | | | | | | |
| * | | | | | | | adding :call-seq: to CollectionProxy methodsFrancesco Rodriguez2012-05-221-0/+39
| | | | | | | | |
| * | | | | | | | add CollectionProxy#build documentationFrancesco Rodriguez2012-05-221-0/+31
| | | | | | | | |