Skip to content

Commit

Permalink
Fix plugin command generation.
Browse files Browse the repository at this point in the history
  • Loading branch information
FooBarWidget committed Aug 25, 2010
1 parent 960a820 commit 6082095
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
20 changes: 10 additions & 10 deletions app/models/command.rb
Expand Up @@ -22,22 +22,22 @@ def default_script
end

def option_array
returning [] do |option_array|

if options.present?

option_array = options.collect do |key, value|
":#{key} => #{value.inspect}" if value.present?
if options.present?
option_array = options.map do |key, value|
if value.present?
":#{key} => #{value.inspect}"
else
nil
end

option_array = [nil] + option_array.compact
end

[nil] + option_array.compact
else
[]
end
end

def spacing
@spacing ||= ",\n" + (" " * (category.size + 1))
@spacing ||= ", "
end

end
2 changes: 1 addition & 1 deletion app/views/templates/show.html.haml
Expand Up @@ -5,7 +5,7 @@
Just enter the line below into your command line and you should be up and running!

%em
Requires Rails 2.3+
Requires Rails 2.3.x.

%pre#gen
== rails newapp -m #{template_short_url(:host => "www.railsboost.com")}
Expand Down

0 comments on commit 6082095

Please sign in to comment.