lib/docman/commands/command.rb in docman-0.0.80 vs lib/docman/commands/command.rb in docman-0.0.81

- old
+ new

@@ -15,9 +15,10 @@ @@subclasses = {} define_hooks :before_execute, :after_execute def self.create(params, context = nil, caller = nil) + params['type'] = params['type'].to_sym if params['type'].instance_of? String c = @@subclasses[params['type']] if c c.new(params, context, caller) else raise "Bad command type: #{params['type']}" \ No newline at end of file