1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

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

rake < 0.9 doesn't define Rake::DSL.
This commit is contained in:
Joe Van Dyk 2012-04-21 03:10:25 -07:00 committed by Jeremy Kemper
parent 5f6ef504b1
commit 82c3aca17e

View file

@ -2,7 +2,7 @@ require 'rdoc/task'
# 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