Skip to content
This repository
Browse code

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

rake < 0.9 doesn't define Rake::DSL.
  • Loading branch information...
commit 82c3aca17e78d25f217702e530586673f2a219d7 1 parent 5f6ef50
Joe Van Dyk authored April 21, 2012 jeremy committed April 23, 2012
2  railties/lib/rails/tasks/documentation.rake
@@ -2,7 +2,7 @@ require 'rdoc/task'
2 2
 
3 3
 # Monkey-patch to remove redoc'ing and clobber descriptions to cut down on rake -T noise
4 4
 class RDocTaskWithoutDescriptions < RDoc::Task
5  
-  include ::Rake::DSL
  5
+  include ::Rake::DSL if defined?(::Rake::DSL)
6 6
 
7 7
   def define
8 8
     task rdoc_task_name

0 notes on commit 82c3aca

Please sign in to comment.
Something went wrong with that request. Please try again.