Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

rake < 0.9 doesn't define Rake::DSL.
  • Loading branch information...
commit 82c3aca17e78d25f217702e530586673f2a219d7 1 parent 5f6ef50
@joevandyk joevandyk authored jeremy committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  railties/lib/rails/tasks/documentation.rake
View
2  railties/lib/rails/tasks/documentation.rake
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.