Permalink
Browse files

fixed bug with a linear plot

  • Loading branch information...
1 parent cc53853 commit ada8cd7840419700ba78554d4a2310fc17a701f9 @mac-r mac-r committed Mar 30, 2013
Showing with 10 additions and 8 deletions.
  1. BIN ajaila-0.0.2alpha.gem
  2. +10 −8 lib/ajaila/console/generators.rb
View
Binary file not shown.
@@ -15,14 +15,16 @@
if args[0] == "selector"
content = Ajaila::ConsoleHelper.render("selector")
- io = Ajaila::ConsoleHelper.additional_params(args)
- file = Ajaila::ConsoleHelper.get_file(io)
- file_name = Ajaila::ConsoleHelper.get_file(io).split(".").first.upcase
- table = Ajaila::ConsoleHelper.get_table(io)
- all_columns = Ajaila::ConsoleHelper.get_columns(table)
- clast = all_columns.pop
- cleft = all_columns
- content += "\n" + Ajaila::ConsoleHelper.render( "_parser", :columns => cleft, :last => clast, :collection => table, :file => file, :file_name => file_name )
+ if args[2] != nil
+ io = Ajaila::ConsoleHelper.additional_params(args)
+ file = Ajaila::ConsoleHelper.get_file(io)
+ file_name = Ajaila::ConsoleHelper.get_file(io).split(".").first.upcase
+ table = Ajaila::ConsoleHelper.get_table(io)
+ all_columns = Ajaila::ConsoleHelper.get_columns(table)
+ clast = all_columns.pop
+ cleft = all_columns
+ content += "\n" + Ajaila::ConsoleHelper.render( "_parser", :columns => cleft, :last => clast, :collection => table, :file => file, :file_name => file_name )
+ end
end
if args[0] == "miner"

0 comments on commit ada8cd7

Please sign in to comment.