Permalink
Browse files

adding notification for rdoc

  • Loading branch information...
1 parent b132992 commit bb99aa1149bb02f906d81bd471f6e422c48f5e1a @tenderlove tenderlove committed Aug 16, 2011
Showing with 5 additions and 0 deletions.
  1. +5 −0 railties/lib/tasks/documentation.rake
@@ -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

0 comments on commit bb99aa1

Please sign in to comment.