aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/tasks
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2013-01-08 00:16:19 +0100
committerXavier Noria <fxn@hashref.com>2013-01-08 00:50:56 +0100
commit553b6958dce75b6a3f8de21d6801c82a472d3001 (patch)
tree9ee402caea36d574a1ff06653beceec413add704 /railties/lib/rails/tasks
parent9c5fb001412996ea807772e1066c92ad3688bbdb (diff)
downloadrails-553b6958dce75b6a3f8de21d6801c82a472d3001.tar.gz
rails-553b6958dce75b6a3f8de21d6801c82a472d3001.tar.bz2
rails-553b6958dce75b6a3f8de21d6801c82a472d3001.zip
doc/README_FOR_APP is no longer generated
Diffstat (limited to 'railties/lib/rails/tasks')
-rw-r--r--railties/lib/rails/tasks/documentation.rake7
1 files changed, 5 insertions, 2 deletions
diff --git a/railties/lib/rails/tasks/documentation.rake b/railties/lib/rails/tasks/documentation.rake
index 2851ca4189..ea6c074bdc 100644
--- a/railties/lib/rails/tasks/documentation.rake
+++ b/railties/lib/rails/tasks/documentation.rake
@@ -45,7 +45,7 @@ namespace :doc do
rdoc.title = ENV['title'] || "Rails Application Documentation"
rdoc.options << '--line-numbers'
rdoc.options << '--charset' << 'utf-8'
- rdoc.rdoc_files.include('doc/README_FOR_APP')
+ rdoc.rdoc_files.include('README.rdoc')
rdoc.rdoc_files.include('app/**/*.rb')
rdoc.rdoc_files.include('lib/**/*.rb')
}
@@ -57,7 +57,10 @@ namespace :doc do
rdoc.template = "#{ENV['template']}.rb" if ENV['template']
rdoc.title = "Rails Framework Documentation"
rdoc.options << '--line-numbers'
- rdoc.rdoc_files.include('README.rdoc')
+
+ gem_path('rails') do |rails|
+ rdoc.options << '-m' << "#{rails}/README.rdoc"
+ end
gem_path('actionmailer') do |actionmailer|
%w(README.rdoc CHANGELOG.md MIT-LICENSE lib/action_mailer/base.rb).each do |file|