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
Rafael Mendonça França ad4ea98090 Do not mark object as persisted after an association is saved
Callback order in Active Record objects are important. Users should not
define callbacks before the association definition or surprising
behaviours like the described at #3798 will happen. This callback order
dependency is documented at 31bfcdc77c/activerecord/lib/active_record/associations.rb (L1222-1227).

This reverts #15728.

Fixes #16620.
2014-09-05 18:43:10 -03:00
..
association_scope_test.rb
belongs_to_associations_test.rb Include fixtures to prevent foreign key violation. 2014-07-09 00:04:14 +08:00
callbacks_test.rb Remove unused variable 2014-05-01 14:10:11 -03:00
cascaded_eager_loading_test.rb Deprecate automatic counter caches on has_many :through 2014-06-26 07:24:34 -06:00
deprecated_counter_cache_on_has_many_through_test.rb Deprecate automatic counter caches on has_many :through 2014-06-26 07:24:34 -06:00
eager_load_includes_full_sti_class_test.rb
eager_load_nested_include_test.rb Use teardown helper method. 2014-03-14 20:48:59 -07:00
eager_singularization_test.rb Use teardown helper method. 2014-03-14 20:48:59 -07:00
eager_test.rb Fixed regression with referencing polymorphic assoc in eager-load 2014-09-05 04:37:12 -07:00
extension_test.rb
has_and_belongs_to_many_associations_test.rb Ignore SCHEMA queries in some habtm tests 2014-08-14 19:17:49 +09:00
has_many_associations_test.rb Do not mark object as persisted after an association is saved 2014-09-05 18:43:10 -03:00
has_many_through_associations_test.rb Do not mark object as persisted after an association is saved 2014-09-05 18:43:10 -03:00
has_one_associations_test.rb Ignore SCHEMA queries when asserting no queries 2014-08-28 14:38:42 +09:00
has_one_through_associations_test.rb Through associations should set both parent ids on join models 2014-06-13 14:38:34 -06:00
inner_join_association_test.rb WIP: pass existing joins to construct_join_dependency 2014-05-16 15:55:44 -04:00
inverse_associations_test.rb Merge pull request #15343 from dontfidget/fix_polymorphic_automatic_inverse_of 2014-06-13 18:19:18 -03:00
join_model_test.rb Deprecate automatic counter caches on has_many :through 2014-06-26 07:24:34 -06:00
nested_through_associations_test.rb Make sure assertion passes for postgresql. 2014-07-22 17:03:26 +08:00
required_test.rb Remove 'if exists' from drop table statement then use table_exists? 2014-09-03 04:43:53 +09:00