lib/docman/commands/command.rb in docman-0.0.75 vs lib/docman/commands/command.rb in docman-0.0.76

- old
+ new

@@ -67,10 +67,10 @@ end def add_action(name, hook, context = nil) hook['order'] = 0 unless hook['order'] if @hooks.has_key? name - @hooks[name] << {'type' => hook} + @hooks[name] << hook else @hooks[name] = [hook] end end \ No newline at end of file