Rails 2.1 RC1
Updated Instiki to Rails 2.1 RC1 (aka 2.0.991).
This commit is contained in:
parent
14afed5893
commit
5292899c9a
971 changed files with 46318 additions and 17450 deletions
|
@ -43,18 +43,21 @@ module Rails
|
|||
|
||||
def usage_message
|
||||
usage = "\nInstalled Generators\n"
|
||||
Rails::Generator::Base.sources.inject({}) do |mem, source|
|
||||
Rails::Generator::Base.sources.inject([]) do |mem, source|
|
||||
# Using an association list instead of a hash to preserve order,
|
||||
# for esthetic reasons more than anything else.
|
||||
label = source.label.to_s.capitalize
|
||||
mem[label] ||= []
|
||||
mem[label] |= source.names
|
||||
pair = mem.assoc(label)
|
||||
mem << (pair = [label, []]) if pair.nil?
|
||||
pair[1] |= source.names
|
||||
mem
|
||||
end.each_pair do |label, names|
|
||||
end.each do |label, names|
|
||||
usage << " #{label}: #{names.join(', ')}\n" unless names.empty?
|
||||
end
|
||||
|
||||
usage << <<end_blurb
|
||||
|
||||
More are available at http://rubyonrails.org/show/Generators
|
||||
More are available at http://wiki.rubyonrails.org/rails/pages/AvailableGenerators
|
||||
1. Download, for example, login_generator.zip
|
||||
2. Unzip to directory #{Dir.user_home}/.rails/generators/login
|
||||
to use the generator with all your Rails apps
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue