aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/associations/builder/belongs_to.rb
Commit message (Expand)AuthorAgeFilesLines
* Prevented belongs_to: touch propagating up if there are no changes being savedBrock Trappitt2014-05-211-1/+1
* Hide BelongsToAssociation#increment_counters and #decrement_countersJean Boussier2014-04-151-1/+0
* Use inheritance chain instead of callbacks to increment counter caches after ...Jean Boussier2014-04-141-16/+0
* Use inheritance chain instead of callbacks to increment counter caches after ...Jean Boussier2014-04-141-12/+1
* Make counter cache decrementation on destroy idempotentJean Boussier2014-04-131-4/+5
* On destroying do not touch destroyed belongs to association.Paul Nikitochkin2013-12-231-1/+1
* Revert the whole refactoring in the association builder classes.Rafael Mendonça França2013-12-111-2/+4
* Bring back the valid_options class accessorRafael Mendonça França2013-12-111-1/+1
* polymorphic belongs_to association with touch: true updates old record correctlySeverin Schoepke2013-12-051-1/+7
* Raise `ArgumentError` when `has_one` is used with `counter_cache`Godfrey Chan2013-11-291-1/+1
* Method visibility will not make difference hereRafael Mendonça França2013-10-091-2/+0
* Move macro to class levelRafael Mendonça França2013-10-091-1/+1
* Make valid_options a class methodRafael Mendonça França2013-10-091-1/+1
* Push define_accessors to class level since we don't need anythig fromRafael Mendonça França2013-10-081-2/+2
* Move add_counter_cache_methods to class levelRafael Mendonça França2013-10-081-2/+2
* we can define callbacks without a builder instanceAaron Patterson2013-10-021-3/+3
* push methods that don't depend on the instance to the classAaron Patterson2013-10-021-4/+4
* decouple belongs_to callback definition from the builder instance.Aaron Patterson2013-10-021-4/+4
* valid_options doesn't depend on the instance, so push it to the classAaron Patterson2013-10-021-1/+1
* association builder is no longer needed for counter cache, so remove itAaron Patterson2013-10-021-7/+6
* push constructable? on to the reflectionAaron Patterson2013-10-021-6/+2
* name is on the reflection, so just use the reflectionAaron Patterson2013-10-021-2/+2
* remove dependency on @model when defining callbacksAaron Patterson2013-08-011-5/+5
* extract more mutations to the callerAaron Patterson2013-08-011-7/+6
* separate some mutations from reflection constructionAaron Patterson2013-08-011-1/+5
* #11288: Removed duplicated touchingPaul Nikitochkin2013-07-051-1/+1
* stop adding a new method for touch callbacksAaron Patterson2013-06-111-29/+21
* push the touch method outside the evalAaron Patterson2013-06-111-13/+34
* remove unused variableAaron Patterson2013-06-111-1/+0
* check whether the association is constructible rather than checking constantsAaron Patterson2013-06-111-3/+3
* use attribute methods for finding key values rather than generating method namesAaron Patterson2013-06-111-3/+3
* push belongs_to counter cache method to a single methodAaron Patterson2013-06-111-17/+18
* push before_destroy counter cache method to a single methodAaron Patterson2013-06-111-12/+17
* remove evaled belongs_to counter cache methodAaron Patterson2013-06-111-8/+22
* adding callbacks should be privateAaron Patterson2013-06-111-4/+6
* Confirm a record has not already been destroyed before decrementingBen Tucker2013-05-061-1/+3
* Lookup the class at runtime, not when the association is builtAndrew White2013-04-241-2/+2
* Revert "Revert "`belongs_to :touch` behavior now touches old association when...Andrew White2013-04-241-1/+12
* Revert "`belongs_to :touch` behavior now touches old association when transit...David Heinemeier Hansson2013-04-231-12/+1
* Update counter cache when pushing into associationMatthew Robertson2013-04-211-3/+4
* Avoid an attempt to fetch old record when id was not present in touch callbackCarlos Antonio da Silva2013-04-041-7/+7
* Use the correct pk field from the reflected class to find the old recordCarlos Antonio da Silva2013-04-041-1/+2
* Use inspect when writing the foreign key from the reflectionAndrew White2013-04-051-2/+2
* Merge pull request #9141 from adamgamble/issue-9091David Heinemeier Hansson2013-04-031-0/+10
|\
| * Modifies belong_to touch callback to touch old associations also #9091Adam Gamble2013-03-141-0/+10
* | Update other counter caches on destroyIan Young2013-03-201-1/+1
* | If a counter_cache is defined, then using update_attributes and changingJohn Wang2013-03-151-0/+20
|/
* Fix touching an invalid parent record for belongs_toOlek Janiszewski2013-02-261-1/+1
* Use method compilation for association methodsJon Leighton2012-08-101-32/+25
* DRY up handling of dependent optionJon Leighton2012-08-101-18/+2