aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models/parrot.rb
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2013-07-01 23:41:32 -0300
committerRafael Mendonça França <rafaelmfranca@gmail.com>2013-07-01 23:41:32 -0300
commit260c2015b3503a36ed661b319864cdac74f58046 (patch)
tree7c3bf5001bbf9fb32cacf55c9018fd504e462316 /activerecord/test/models/parrot.rb
parent7f35c409024b61f7a9ff9bc983d08da58ffb3893 (diff)
parentf319e4a9421d8815717fd6ca6191268fed9e536d (diff)
downloadrails-260c2015b3503a36ed661b319864cdac74f58046.tar.gz
rails-260c2015b3503a36ed661b319864cdac74f58046.tar.bz2
rails-260c2015b3503a36ed661b319864cdac74f58046.zip
Merge pull request #10604 from neerajdotname/delete_all_should_not_call_callbacks
Do not invoke callbacks when delete_all is called Conflicts: activerecord/CHANGELOG.md
Diffstat (limited to 'activerecord/test/models/parrot.rb')
-rw-r--r--activerecord/test/models/parrot.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/activerecord/test/models/parrot.rb b/activerecord/test/models/parrot.rb
index c4ee2bd19d..e76e83f314 100644
--- a/activerecord/test/models/parrot.rb
+++ b/activerecord/test/models/parrot.rb
@@ -21,3 +21,9 @@ end
class DeadParrot < Parrot
belongs_to :killer, :class_name => 'Pirate'
end
+
+class FunkyParrot < Parrot
+ before_destroy do
+ raise "before_destroy was called"
+ end
+end