index
:
rails.git
3-2-stable-for-hmno
master
Mirror of official rails repo with custom fixes.
Harald Eilertsen
about
summary
refs
log
tree
commit
diff
stats
log msg
author
committer
range
path:
root
/
activerecord
/
lib
/
active_record
/
associations
/
builder
/
belongs_to.rb
Commit message (
Expand
)
Author
Age
Files
Lines
*
Rename local variable `n` to `name`
Ryuta Kamizono
2019-04-24
1
-2
/
+2
*
Make association builder methods private
Ryuta Kamizono
2019-04-24
1
-0
/
+3
*
Avoid extra touch queries when counter cache is updated
Ryuta Kamizono
2018-09-27
1
-2
/
+8
*
Refactor counter cache to extract `decrement_counters_before_last_save` on th...
Ryuta Kamizono
2018-09-27
1
-37
/
+6
*
Update counter cache in memory if parent target is existed
Ryuta Kamizono
2018-09-26
1
-10
/
+3
*
Don't update counter cache unless the record is actually saved
Ryuta Kamizono
2018-09-19
1
-3
/
+1
*
Enable Style/ParenthesesAroundCondition cop
Ryuta Kamizono
2018-08-19
1
-1
/
+1
*
Extract `Relation#update_counters` for internal use
Ryuta Kamizono
2018-07-30
1
-6
/
+4
*
Fix inconsistent touching behavior between assigning and unassigning
Ryuta Kamizono
2018-05-27
1
-1
/
+2
*
Fix `belongs_to_counter_cache_after_update` to respect polymorphic type change
Ryuta Kamizono
2018-05-27
1
-1
/
+1
*
Avoid a subquery in updating counter cache
Ryuta Kamizono
2018-05-26
1
-6
/
+1
*
Fix `belongs_to_counter_cache_after_update` to respect custom primary key cou...
Ryuta Kamizono
2018-05-26
1
-0
/
+13
*
Fix conflicts `counter_cache` with `touch: true` by optimistic locking.
bogdanvlviv
2017-12-12
1
-3
/
+7
*
Merge pull request #29765 from lugray/fix_counter_cache
Rafael França
2017-07-24
1
-3
/
+1
|
\
|
*
Add test for fixed `counter_cache` double increment
Lisa Ugray
2017-07-19
1
-3
/
+1
*
|
Use frozen-string-literal in ActiveRecord
Kir Shatrov
2017-07-19
1
-0
/
+2
|
/
*
Revert "Merge pull request #29540 from kirs/rubocop-frozen-string"
Matthew Draper
2017-07-02
1
-1
/
+0
*
Enforce frozen string in Rubocop
Kir Shatrov
2017-07-01
1
-0
/
+1
*
Evaluate the default block only when necessary
Ryuta Kamizono
2017-03-20
1
-1
/
+1
*
Add :default option to belongs_to (#28453)
George Claghorn
2017-03-17
1
-1
/
+8
*
Deprecate the behavior of AR::Dirty inside of after_(create|update|save) call...
Sean Griffin
2016-11-01
1
-14
/
+16
*
Fix counter_cache double increment bug
Tom Kadwill
2016-04-28
1
-0
/
+2
*
Define `:foreign_type` as a valid option in `SingularAssociation`
yui-knk
2016-01-19
1
-1
/
+1
*
Make sure we touch all the parents when touch_later.
Arthur Neves
2015-12-06
1
-2
/
+1
*
Update belongs_to.rb
Ehsan Yousefi
2015-11-08
1
-2
/
+1
*
docs, add missing `:nodoc: for `Associations::Builder`. [ci skip]
Yves Senn
2015-10-13
1
-1
/
+1
*
Fix counter_cache for polymorphic associations
Stefan Kanev
2015-07-19
1
-4
/
+12
*
Batch touch parent records
Arthur Neves
2015-04-08
1
-6
/
+7
*
Require `belongs_to` by default.
Josef Šimánek
2015-02-21
1
-1
/
+19
*
Remove support to activerecord-deprecated_finders
Rafael Mendonça França
2015-01-02
1
-4
/
+2
*
Merge pull request #12450 from iantropov/master
Rafael Mendonça França
2014-06-27
1
-0
/
+5
|
\
|
*
Fix bug, when ':dependent => :destroy' option violates foreign key constraint...
Ivan Antropov
2013-10-26
1
-0
/
+4
*
|
Prevented belongs_to: touch propagating up if there are no changes being saved
Brock Trappitt
2014-05-21
1
-1
/
+1
*
|
Hide BelongsToAssociation#increment_counters and #decrement_counters
Jean Boussier
2014-04-15
1
-1
/
+0
*
|
Use inheritance chain instead of callbacks to increment counter caches after ...
Jean Boussier
2014-04-14
1
-16
/
+0
*
|
Use inheritance chain instead of callbacks to increment counter caches after ...
Jean Boussier
2014-04-14
1
-12
/
+1
*
|
Make counter cache decrementation on destroy idempotent
Jean Boussier
2014-04-13
1
-4
/
+5
*
|
On destroying do not touch destroyed belongs to association.
Paul Nikitochkin
2013-12-23
1
-1
/
+1
*
|
Revert the whole refactoring in the association builder classes.
Rafael Mendonça França
2013-12-11
1
-2
/
+4
*
|
Bring back the valid_options class accessor
Rafael Mendonça França
2013-12-11
1
-1
/
+1
*
|
polymorphic belongs_to association with touch: true updates old record correctly
Severin Schoepke
2013-12-05
1
-1
/
+7
*
|
Raise `ArgumentError` when `has_one` is used with `counter_cache`
Godfrey Chan
2013-11-29
1
-1
/
+1
*
|
Method visibility will not make difference here
Rafael Mendonça França
2013-10-09
1
-2
/
+0
*
|
Move macro to class level
Rafael Mendonça França
2013-10-09
1
-1
/
+1
*
|
Make valid_options a class method
Rafael Mendonça França
2013-10-09
1
-1
/
+1
*
|
Push define_accessors to class level since we don't need anythig from
Rafael Mendonça França
2013-10-08
1
-2
/
+2
*
|
Move add_counter_cache_methods to class level
Rafael Mendonça França
2013-10-08
1
-2
/
+2
*
|
we can define callbacks without a builder instance
Aaron Patterson
2013-10-02
1
-3
/
+3
*
|
push methods that don't depend on the instance to the class
Aaron Patterson
2013-10-02
1
-4
/
+4
*
|
decouple belongs_to callback definition from the builder instance.
Aaron Patterson
2013-10-02
1
-4
/
+4
[next]