Skip to content
Browse files

[dm-is-remixable] Make sure hooks are copied over to remixed models p…

…roperly
  • Loading branch information...
1 parent cd76439 commit 5e107707bf801a661ea0eb4f2f3a67968055b9c6 @dkubb dkubb committed Apr 1, 2010
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/dm-is-remixable/is/remixable.rb
View
2 lib/dm-is-remixable/is/remixable.rb
@@ -404,6 +404,8 @@ def belongs_to_name(class_name)
private
def clone_hooks(remixable, model)
+ remixable.__send__(:copy_hooks, model)
+
# event name is by default :create, :destroy etc
remixable.instance_hooks.each do |event_name, hooks|
[:after, :before].each do |callback|

0 comments on commit 5e10770

Please sign in to comment.
Something went wrong with that request. Please try again.