aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/examples
diff options
context:
space:
mode:
authorJon Leighton <j@jonathanleighton.com>2010-12-30 20:41:02 +0000
committerJon Leighton <j@jonathanleighton.com>2010-12-31 20:00:44 +0000
commit38fbfa6390c449dfc9a3db2975e65bd0fd665b18 (patch)
treeea2a47a03413d39eec1f5a2d8eb87cec71af0d87 /activerecord/examples
parent27ea0481bb68b2a09ade4f442beea3eac812b72c (diff)
downloadrails-38fbfa6390c449dfc9a3db2975e65bd0fd665b18.tar.gz
rails-38fbfa6390c449dfc9a3db2975e65bd0fd665b18.tar.bz2
rails-38fbfa6390c449dfc9a3db2975e65bd0fd665b18.zip
Refactor configure_dependency_for_has_many to use AssociationCollection#delete_all. It was necessary to change test_before_destroy in lifecycle_test.rb so that it checks topic.replies.size *before* doing the destroy, as afterwards it will now (correctly) be 0.
Diffstat (limited to 'activerecord/examples')
0 files changed, 0 insertions, 0 deletions