bin/railroady in railroady-1.1.1 vs bin/railroady in railroady-1.1.2
- old
+ new
@@ -34,14 +34,15 @@
old_dir = Dir.pwd
Dir.chdir(options.root) if options.root != ''
-if options.command == 'models'
+case options.command
+when 'models'
diagram = ModelsDiagram.new options
-elsif options.command == 'controllers'
+when 'controllers'
diagram = ControllersDiagram.new options
-elsif options.command == 'aasm'
+when 'aasm'
diagram = AasmDiagram.new(options)
else
STDERR.print "#{APP_HUMAN_NAME} v#{APP_VERSION}\n" +
"Error: You must supply a command\n" +
" (try #{APP_NAME} -h)\n\n"