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:
parent
5f6ef504b1
commit
82c3aca17e
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue