lib/docman/commands/command.rb in docman-0.0.13 vs lib/docman/commands/command.rb in docman-0.0.14

- old
+ new

@@ -48,10 +48,10 @@ end def add_actions(obj, context = nil) if obj.has_key? 'hooks' and obj['hooks'].has_key? @type obj['hooks'][@type].each_pair do |name, hooks| - hooks = hooks.clone + hooks = Marshal::load(Marshal.dump(hooks)) unless context.nil? hooks.each do |hook| hook['context'] = context end end \ No newline at end of file