aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2006-02-25 23:27:41 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2006-02-25 23:27:41 +0000
commit67a978be5d6857785c08b464b0ef4555298da14b (patch)
tree93888b466273f4591ef737f6b9ec23299e7db609
parent6b835730deb945827a40fb57db385c32527c6ea8 (diff)
downloadrails-67a978be5d6857785c08b464b0ef4555298da14b.tar.gz
rails-67a978be5d6857785c08b464b0ef4555298da14b.tar.bz2
rails-67a978be5d6857785c08b464b0ef4555298da14b.zip
rake appdoc fails with unrecognized option (closes #3757) [Jakob S]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3649 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
-rwxr-xr-xrailties/lib/rails_generator/generators/components/plugin/templates/Rakefile2
-rw-r--r--railties/lib/tasks/documentation.rake2
2 files changed, 2 insertions, 2 deletions
diff --git a/railties/lib/rails_generator/generators/components/plugin/templates/Rakefile b/railties/lib/rails_generator/generators/components/plugin/templates/Rakefile
index 069105081a..1824fb10fe 100755
--- a/railties/lib/rails_generator/generators/components/plugin/templates/Rakefile
+++ b/railties/lib/rails_generator/generators/components/plugin/templates/Rakefile
@@ -16,7 +16,7 @@ desc 'Generate documentation for the <%= file_name %> plugin.'
Rake::RDocTask.new(:rdoc) do |rdoc|
rdoc.rdoc_dir = 'rdoc'
rdoc.title = '<%= class_name %>'
- rdoc.options << '--line-numbers --inline-source'
+ rdoc.options << '--line-numbers' << '--inline-source'
rdoc.rdoc_files.include('README')
rdoc.rdoc_files.include('lib/**/*.rb')
end
diff --git a/railties/lib/tasks/documentation.rake b/railties/lib/tasks/documentation.rake
index 83704a0d10..a38a284516 100644
--- a/railties/lib/tasks/documentation.rake
+++ b/railties/lib/tasks/documentation.rake
@@ -2,7 +2,7 @@ desc "Generate documentation for the application"
Rake::RDocTask.new("appdoc") { |rdoc|
rdoc.rdoc_dir = 'doc/app'
rdoc.title = "Rails Application Documentation"
- rdoc.options << '--line-numbers --inline-source'
+ rdoc.options << '--line-numbers' << '--inline-source'
rdoc.rdoc_files.include('doc/README_FOR_APP')
rdoc.rdoc_files.include('app/**/*.rb')
}