Skip to content

Commit bb99aa1

Browse files
committed
adding notification for rdoc
1 parent b132992 commit bb99aa1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

railties/lib/tasks/documentation.rake

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
begin
2+
require 'rdoc/task'
13
namespace :doc do
24
desc "Generate documentation for the application. Set custom template with TEMPLATE=/path/to/rdoc/template.rb or title with TITLE=\"Custom Title\""
35
RDoc::Task.new("app") { |rdoc|
@@ -86,3 +88,6 @@ namespace :doc do
8688
end
8789
end
8890
end
91+
rescue LoadError
92+
$stderr.puts 'Please install RDoc 2.4.2+ to generate documentation.'
93+
end

0 commit comments

Comments
 (0)