Method: Docman::Command#run_actions
- Defined in:
- lib/docman/commands/command.rb
#run_actions(name) ⇒ Object
76 77 78 79 80 81 82 83 |
# File 'lib/docman/commands/command.rb', line 76 def run_actions(name) if @hooks.has_key? name @hooks[name].each do |hook| context = hook.has_key?('context') ? hook['context'] : @context Docman::Command.create(hook, context, self).perform end end end |