aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/associations
Commit message (Expand)AuthorAgeFilesLines
* remove duplicate test.Yves Senn2015-05-081-10/+2
* AR::RecordNotSaved & RecordNotDestroyed should include an error messageYuki Nishijima2015-05-011-1/+2
* Rename association option :class to :anonymous_classAndrew White2015-04-213-14/+14
* Batch touch parent recordsArthur Neves2015-04-081-0/+18
* Fix a regression introduced by removing unnecessary db call when replacingShintaro Kojima2015-04-041-0/+2
* Fix eager loading association using default_scope for finder methods.Santosh Wadghule2015-03-311-0/+17
* Merge pull request #19348 from Empact/null-scopeYves Senn2015-03-181-0/+12
|\
| * Reuse the CollectionAssociation#reader proxy cache if the foreign key is pres...Ben Woosley2015-03-151-0/+12
* | Closes rails/rails#18864: Renaming transactional fixtures to transactional testsBrandon Weiss2015-03-163-3/+3
|/
* Revert ":cut: remove unnecessary rescue Exceptions"Yves Senn2015-03-061-1/+1
* :cut: remove unnecessary rescue ExceptionsAaron Patterson2015-03-051-1/+1
* Merge pull request #19105 from amatsuda/array_takeSean Griffin2015-03-021-0/+13
|\
| * Preserve Array#take(n) behaviour of HasManyAssociationAkira Matsuda2015-02-281-0/+13
* | Merge pull request #19077 from robin850/unknown-attribute-errorSean Griffin2015-03-021-1/+1
|\ \ | |/ |/|
| * Follow-up to #10776Robin Dupret2015-02-261-1/+1
* | Properly create through records when called with `where`Sean Griffin2015-02-261-0/+6
* | Merge pull request #17297 from rebyn/fix/17161-remove-objs-from-has_many-upda...Rafael Mendonça França2015-02-251-0/+25
|\ \ | |/ |/|
| * Add specs for adding-to/clear has_many collections’s behavior on `updated_at`Tu Hoang2014-10-301-0/+25
* | Require `belongs_to` by default.Josef Šimánek2015-02-211-0/+50
* | Merge branch 'rm-take' into 4-1-stableRafael Mendonça França2015-02-201-1/+29
* | Optimize none? and one? relation query methods to use LIMIT and COUNT.Eugene Gilburg2015-02-121-0/+76
* | Merge branch 'master' into pr/18316Mingdong Luo2015-01-317-70/+45
|\ \
| * | Provide a better error message on :required associationHenrik Nygren2015-01-281-2/+22
| * | Use an `Attribute` object to represent a bind valueSean Griffin2015-01-271-1/+1
| * | `WhereClause#predicates` does not need to be publicSean Griffin2015-01-273-13/+8
| * | Test association was eager loaded, rather than reaching into internalsSean Griffin2015-01-261-2/+2
| * | Remove all references to `where_values` in testsSean Griffin2015-01-253-11/+11
| * | Extracted `ActiveRecord::AttributeAssignment` to `ActiveModel::AttributesAssi...Bogdan Gusiev2015-01-231-1/+1
| * | Merge pull request #18458 from brainopia/fix_after_commit_for_fixturesJeremy Kemper2015-01-201-1/+0
| |\ \
| | * | after_commit runs after transactions with non-joinable parentsbrainopia2015-01-161-1/+0
| * | | tests, use `drop_table if_exists: true` in our test suite.Yves Senn2015-01-201-2/+2
| |/ /
| * | remove deprecated support to preload instance-dependent associaitons.Yves Senn2015-01-051-22/+9
| * | Remove deprecated automatic counter caches on `has_many :through`Rafael Mendonça França2015-01-041-26/+0
* | | Fix n+1 query problem when eager loading nil associations (fixes #18312)Sammy Larbi2015-01-031-0/+8
|/ /
* | Merge pull request #15309 from iantropov/issue_12698_build_throughRafael Mendonça França2015-01-021-1/+10
|\ \
| * | Add setting of FK for throgh associations while buildingIvan Antropov2014-05-251-1/+10
* | | Remove support to activerecord-deprecated_findersRafael Mendonça França2015-01-021-2/+1
* | | Merge pull request #15746 from amccloud/auto-inverse_of-in-moduleRafael Mendonça França2015-01-021-0/+12
|\ \ \
| * | | Fixed automatic inverse_of for models nested in moduleAndrew McCloud2014-06-151-0/+12
* | | | Fix warning: assigned but unused variable - postRyuta Kamizono2014-12-311-1/+1
* | | | Fix error message when trying to create an associated recordRafael Mendonça França2014-12-301-0/+8
* | | | Share foreign_key_present? implementation in _has_ associationsbrainopia2014-12-312-35/+57
* | | | `eager_load` preserves readonly flag for associationsTakashi Kokubun2014-12-301-1/+4
* | | | Add foreign_type option for polymorphic has_one and has_many.Ulisses Almeida + Kassio Borges2014-12-082-0/+21
* | | | Merge pull request #17889 from mxie/mx-fix-nonexistent-typoSean Griffin2014-12-023-4/+4
|\ \ \ \
| * | | | Fix "nonexistent" typo in testsMelissa Xie2014-12-023-4/+4
* | | | | Require missing association in testSean Griffin2014-12-021-0/+1
|/ / / /
* | | | Pass symbol as an argument instead of a blockErik Michaels-Ober2014-11-297-20/+18
* | | | Adds preloaded_records method to NullPreloaderThorsten Ball2014-11-281-0/+8
* | | | Fix a bug where AR::RecordNotSaved loses error messagesYuki Nishijima2014-11-273-9/+28