We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b132992 commit bb99aa1Copy full SHA for bb99aa1
railties/lib/tasks/documentation.rake
@@ -1,3 +1,5 @@
1
+begin
2
+ require 'rdoc/task'
3
namespace :doc do
4
desc "Generate documentation for the application. Set custom template with TEMPLATE=/path/to/rdoc/template.rb or title with TITLE=\"Custom Title\""
5
RDoc::Task.new("app") { |rdoc|
@@ -86,3 +88,6 @@ namespace :doc do
86
88
end
87
89
90
91
+rescue LoadError
92
+ $stderr.puts 'Please install RDoc 2.4.2+ to generate documentation.'
93
+end
0 commit comments