diff options
Diffstat (limited to 'railties/lib/tasks/documentation.rake')
-rw-r--r-- | railties/lib/tasks/documentation.rake | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/lib/tasks/documentation.rake b/railties/lib/tasks/documentation.rake index 3a5b914644..212e56dee2 100644 --- a/railties/lib/tasks/documentation.rake +++ b/railties/lib/tasks/documentation.rake @@ -19,14 +19,14 @@ Plugins.each do |plugin| options << '--line-numbers --inline-source' options << '-T html' - files.include("#{plugin_base}/lib/*.rb") + files.include("#{plugin_base}/lib/**/*.rb") if File.exists?("#{plugin_base}/README") files.include("#{plugin_base}/README") options << "--main '#{plugin_base}/README'" end files.include("#{plugin_base}/CHANGELOG") if File.exists?("#{plugin_base}/CHANGELOG") - options << files.to_s + options << files.to_s sh %(rdoc #{options * ' '}) end |