1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activerecord/test/cases/associations
Ryan Kerr 2e3bba3e3a Fix callbacks on has_many :through associations (#33249)
When adding a child record via a has_many :through association,
build_through_record would previously build the join record, and then
assign the child record and source_type option to it.  Because the
before_add and after_add callbacks are called as part of build, however,
this caused the callbacks to receive incomplete records, specifically
without the other end of the has_many :through association.  Collecting
all attributes before building the join record ensures the callbacks
receive the fully constructed record.
2019-03-30 00:37:08 -04:00
..
belongs_to_associations_test.rb Fix pluck and select with custom attributes 2019-02-13 02:47:46 +09:00
bidirectional_destroy_dependencies_test.rb
callbacks_test.rb
cascaded_eager_loading_test.rb Use assert_queries(0) instead of assert_no_queries to ignore metadata queries 2019-03-26 02:51:03 +00:00
eager_load_includes_full_sti_class_test.rb Fix CI failure due to remaining tagging records 2019-03-26 12:59:16 +09:00
eager_load_nested_include_test.rb Use assert_no_queries not to ignore BEGIN/COMMIT queries 2018-10-05 04:11:13 +09:00
eager_singularization_test.rb
eager_test.rb Remove unnecessary current_adapter?(:OracleAdapter) for index length 2019-03-03 13:48:23 +00:00
extension_test.rb Change the empty block style to have space inside of the block 2018-09-25 13:19:35 -04:00
has_and_belongs_to_many_associations_test.rb Enable Style/RedundantBegin cop to avoid newly adding redundant begin block 2018-12-21 06:12:42 +09:00
has_many_associations_test.rb Merge pull request #35247 from bogdan/fix-source-reflection-reset-code 2019-02-20 21:24:38 +09:00
has_many_through_associations_test.rb Fix callbacks on has_many :through associations (#33249) 2019-03-30 00:37:08 -04:00
has_one_associations_test.rb Address test_belongs_to_does_not_use_order_by failure due to checking order by for metadata queries 2019-02-08 00:33:16 +00:00
has_one_through_associations_test.rb More exercise singular association query 2018-11-28 03:34:20 +09:00
inner_join_association_test.rb Fix CustomCops/AssertNot to allow it to have failure message 2018-05-13 11:32:47 +09:00
inverse_associations_test.rb Revert "Merge pull request #33729 from kddeisz/plural-automatic-inverse" 2019-02-01 01:34:49 +09:00
join_model_test.rb Replace assert ! with assert_not 2018-04-19 08:11:33 -04:00
left_outer_join_association_test.rb
nested_through_associations_test.rb Fix preloader to never reset associations in case they are already loaded 2019-03-07 16:48:46 +02:00
required_test.rb Enable Style/RedundantBegin cop to avoid newly adding redundant begin block 2018-12-21 06:12:42 +09:00