Permalink
Browse files

Fixed the argument signatures on after hooks

  • Loading branch information...
1 parent 5a31feb commit 894999be9d6340972f046783a46669d941e080f0 Carl Lerche committed Jul 16, 2008
Showing with 2 additions and 2 deletions.
  1. +1 −1 dm-is-list/lib/dm-is-list/is/list.rb
  2. +1 −1 dm-is-nested_set/lib/dm-is-nested_set/is/nested_set.rb
@@ -56,7 +56,7 @@ def is_list(options={})
end
# we need to make sure that STI-models will inherit the list_scope.
- after_class_method :inherited do |target|
+ after_class_method :inherited do |retval, target|
target.instance_variable_set(:@list_scope, @list_scope.dup)
end
@@ -51,7 +51,7 @@ def is_nested_set(options={})
self.send(:detach)
end
- after_class_method :inherited do |target|
+ after_class_method :inherited do |retval,target|
target.instance_variable_set(:@nested_set_scope, @nested_set_scope.dup)
target.instance_variable_set(:@nested_set_parent, @nested_set_parent.dup)
end

0 comments on commit 894999b

Please sign in to comment.