lib/commander/import.rb in visionmedia-commander-2.5.6 vs lib/commander/import.rb in visionmedia-commander-2.5.7

- old
+ new

@@ -18,11 +18,14 @@ def command_runner #:nodoc: $command_runner end + alias_method :original_method_missing, :method_missing def method_missing meth, *args, &block if meth.to_s =~ /^ask_for_([\w]+)/ $terminal.ask args.first, eval($1.camelcase) + else + original_method_missing(meth, *args, &block) end end end \ No newline at end of file