diff --git a/lib/hooks.rb b/lib/hooks.rb index 2cef375..f0ef1e1 100644 --- a/lib/hooks.rb +++ b/lib/hooks.rb @@ -23,7 +23,7 @@ def self.included(base) extend Uber::InheritableAttr extend ClassMethods inheritable_attr :_hooks - self._hooks= HookSet.new + self._hooks ||= HookSet.new end end @@ -133,4 +133,4 @@ def clone end end -require "hooks/instance_hooks" \ No newline at end of file +require "hooks/instance_hooks"