Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

adding notification for rdoc

  • Loading branch information...
commit bb99aa1149bb02f906d81bd471f6e422c48f5e1a 1 parent b132992
Aaron Patterson tenderlove authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 railties/lib/tasks/documentation.rake
5 railties/lib/tasks/documentation.rake
View
@@ -1,3 +1,5 @@
+begin
+ require 'rdoc/task'
namespace :doc do
desc "Generate documentation for the application. Set custom template with TEMPLATE=/path/to/rdoc/template.rb or title with TITLE=\"Custom Title\""
RDoc::Task.new("app") { |rdoc|
@@ -86,3 +88,6 @@ namespace :doc do
end
end
end
+rescue LoadError
+ $stderr.puts 'Please install RDoc 2.4.2+ to generate documentation.'
+end
Please sign in to comment.
Something went wrong with that request. Please try again.