aboutsummaryrefslogtreecommitdiffstats
path: root/railties/Rakefile
diff options
context:
space:
mode:
Diffstat (limited to 'railties/Rakefile')
-rw-r--r--railties/Rakefile10
1 files changed, 10 insertions, 0 deletions
diff --git a/railties/Rakefile b/railties/Rakefile
index 38b7ff27c2..d66c425e03 100644
--- a/railties/Rakefile
+++ b/railties/Rakefile
@@ -227,6 +227,16 @@ task :generate_app_doc do
system %{cd #{PKG_DESTINATION}; rake appdoc}
end
+Rake::RDocTask.new { |rdoc|
+ rdoc.rdoc_dir = 'doc'
+ rdoc.title = "Railties -- Gluing the Engine to the Rails"
+ rdoc.options << '--line-numbers --inline-source --accessor cattr_accessor=object'
+ rdoc.template = "#{ENV['template']}.rb" if ENV['template']
+ rdoc.rdoc_files.include('README', 'CHANGELOG')
+ rdoc.rdoc_files.include('lib/*.rb')
+ rdoc.rdoc_files.include('lib/rails_generator/*.rb')
+ rdoc.rdoc_files.include('lib/commands/**/*.rb')
+}
# Generate GEM ----------------------------------------------------------------------------