aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models
Commit message (Expand)AuthorAgeFilesLines
* Change the empty block style to have space inside of the blockRafael Mendonça França2018-09-252-2/+2
* Avoid the same `foreign_key` and `counter_cache` associations on `SillyReply`Ryuta Kamizono2018-09-191-4/+4
* Merge pull request #33378 from numbata/subclass-redefine-autosave-callbacksRafael Mendonça França2018-09-131-0/+6
|\
| * Allow subclasses to redefine autosave callbacks for associated recordsAndrey Subbota2018-07-271-0/+6
* | Eager loading/preloading should be worked regardless of large number of recordsRyuta Kamizono2018-09-121-0/+1
* | Fix regression setting children record in parent before_save callback.Guo Xiang Tan2018-09-032-0/+12
* | Permit list usage cleanup and clearer documentationKevin Deisz2018-08-271-1/+1
* | Convert over the rest of the whitelist referencesKevin Deisz2018-08-241-1/+1
* | Fix numericality validator not to be affected by custom getterRyuta Kamizono2018-08-131-0/+8
* | Call build when extend with nested attributes definedAlireza Bashiri2018-08-021-1/+7
|/
* Avoid extra scoping in delegating to klass methods in the `scope` blockRyuta Kamizono2018-07-191-0/+1
* Ensure to calculate column aliases after all table aliases are constructedRyuta Kamizono2018-06-191-3/+4
* Fix `touch` option to behave consistently with `Persistence#touch` methodRyuta Kamizono2018-06-182-1/+3
* Merge pull request #29373 from untidy-hair/store_accessor_enhanceRyuta Kamizono2018-06-131-0/+3
|\
| * Update prefix and allow suffix options for store accessorsYukio Mizuta2018-06-121-0/+3
* | Fix `collection.create` to could be rolled back by `after_save`Ryuta Kamizono2018-06-071-0/+10
* | Reuse existing model for testing duplicated children recordsRyuta Kamizono2018-06-072-5/+1
* | Merge pull request #32952 from mechanicles/32940-fixRyuta Kamizono2018-05-292-0/+6
|\ \
| * | Fix parent record should not get saved with duplicate children recordsSantosh Wadghule2018-05-282-0/+6
| |/
* | Fix that association's after_touch is not called with counter cacheRyuta Kamizono2018-05-271-0/+10
* | Fix inconsistent touching behavior between assigning and unassigningRyuta Kamizono2018-05-271-1/+1
|/
* Rollback parent transaction when children fails to update (#32796)Guillaume Malette2018-05-221-0/+5
* `becomes` should clear the mutation tracker which is created in `after_initia...Ryuta Kamizono2018-05-111-1/+1
* `get_value` needs to be a public methodGraham Turner2018-04-251-0/+3
* Using existing models for building multiple has_one through testsRyuta Kamizono2018-04-225-24/+1
* Fix .new with multiple through associationsSam DeCesare2018-04-094-0/+24
* Merge pull request #32355 from kamipo/delegate_to_klass_in_a_scopeRafael França2018-04-061-0/+8
|\
| * Deprecate accessibility of private/protected class methods in named scopeRyuta Kamizono2018-03-301-2/+3
| * Bring back private class methods accessibility in named scopeRyuta Kamizono2018-03-271-1/+8
* | Merge pull request #30956 from CJStadler/with-lock-changed-deprecationRafael França2018-03-281-0/+8
|/
* Add custom prefix to ActiveRecord::Store accessorsTan Huynh2018-03-231-0/+3
* Make `reflection.klass` raise if `polymorphic?` not to be misusedRyuta Kamizono2018-02-193-0/+5
* Association scope's own order should be prioritized over through scope's orderRyuta Kamizono2018-02-181-1/+2
* Deprecate update_attributes and update_attributes!Eddie Lebow2018-02-171-2/+2
* Remove unused/missing `to_money` converter in the test/docRyuta Kamizono2018-01-291-1/+1
* Avoid passing unnecessary arguments to relationDaniel Colson2018-01-241-0/+8
* Don't update counter cache when through record was not destroyedEugene Kenny2018-01-142-0/+7
* Merge pull request #23146 from piotrj/issue_18424Ryuta Kamizono2018-01-111-0/+3
|\
| * When deleting through records, take into account association conditionsPiotr Jakubowski2016-05-041-0/+3
* | Fix newly added reflection order when redefining associationRyuta Kamizono2018-01-041-2/+2
* | Merge pull request #27561 from fishbrain/count-all-in-has-many-associationRyuta Kamizono2018-01-031-0/+2
|\ \
| * | Use `count(:all)` in HasManyAssociation#count_recordsKlas Eskilson2017-02-071-0/+2
* | | Add test case for `collection_singular_ids` with symbol primary keysRyuta Kamizono2018-01-011-1/+1
* | | save attributes changed by callbacks after update_attributeMike Busch2017-12-221-0/+7
* | | Fix conflicts `counter_cache` with `touch: true` by optimistic locking.bogdanvlviv2017-12-121-1/+1
* | | Inverse instance should not be reloaded during autosave if called in validationAnmol Chopra2017-11-271-0/+4
* | | try using regexesBen Toews2017-11-097-21/+17
* | | allow table name and direction in string order argBen Toews2017-11-099-25/+29
* | | work around deprecation warnings in a bunch of testsBen Toews2017-11-0914-42/+46
* | | `scoping` should respect current class and STI constraint (#29199)Ryuta Kamizono2017-11-061-0/+4