Permalink
Browse files

Make the actual fork method the module function

  • Loading branch information...
1 parent b73bcb7 commit 3393022f15775a1c90d2df040fa8590bffa32475 @eric eric committed Jul 19, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/zk/install_fork_hooks.rb
@@ -23,7 +23,6 @@ def fork_with_zk_hooks(&block)
end
end
end
- module_function :fork_with_zk_hooks
if defined?(fork_without_zk_hooks)
remove_method :fork
@@ -33,5 +32,6 @@ def fork_with_zk_hooks(&block)
alias fork_without_zk_hooks fork
alias fork fork_with_zk_hooks
+ module_function :fork
end

0 comments on commit 3393022

Please sign in to comment.