diff options
author | Edward Faulkner <ef@alum.mit.edu> | 2011-02-04 15:34:44 -0500 |
---|---|---|
committer | Santiago Pastorino <santiago@wyeworks.com> | 2011-02-04 19:39:59 -0200 |
commit | 909588d964bf27f20142a0b4d57890114a8d4a7a (patch) | |
tree | 13547fb5224456d7345ceb9a80ab1ed4dac2e8ff /activerecord/lib | |
parent | df077604865b12b119be0259575675f45b958524 (diff) | |
download | rails-909588d964bf27f20142a0b4d57890114a8d4a7a.tar.gz rails-909588d964bf27f20142a0b4d57890114a8d4a7a.tar.bz2 rails-909588d964bf27f20142a0b4d57890114a8d4a7a.zip |
Fixing ordering of HABTM association deletion [#6191 state:resolved]
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
Diffstat (limited to 'activerecord/lib')
-rw-r--r-- | activerecord/lib/active_record/associations.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/associations.rb b/activerecord/lib/active_record/associations.rb index 891ac52f8a..d30362b93e 100644 --- a/activerecord/lib/active_record/associations.rb +++ b/activerecord/lib/active_record/associations.rb @@ -1450,8 +1450,8 @@ module ActiveRecord include Module.new { class_eval <<-RUBY, __FILE__, __LINE__ + 1 def destroy # def destroy - #{reflection.name}.clear # posts.clear super # super + #{reflection.name}.clear # posts.clear end # end RUBY } |