Permalink
Browse files

Only include Rake::DSL if it's defined.

rake < 0.9 doesn't define Rake::DSL.
  • Loading branch information...
1 parent f51557d commit 07b1fe5b3f27427b9b1f6e7971afd170d089aa1d Joe Van Dyk committed Apr 21, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 railties/lib/rails/tasks/documentation.rake
@@ -8,7 +8,7 @@ end
# Monkey-patch to remove redoc'ing and clobber descriptions to cut down on rake -T noise
class RDocTaskWithoutDescriptions < RDoc::Task
- include ::Rake::DSL
+ include ::Rake::DSL if defined?(::Rake::DSL)
def define
task rdoc_task_name

0 comments on commit 07b1fe5

Please sign in to comment.