Skip to content

Commit

Permalink
Only include Rake::DSL if it's defined.
Browse files Browse the repository at this point in the history
rake < 0.9 doesn't define Rake::DSL.
  • Loading branch information
Joe Van Dyk authored and jeremy committed Apr 23, 2012
1 parent 5f6ef50 commit 82c3aca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion railties/lib/rails/tasks/documentation.rake
Expand Up @@ -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
Expand Down

0 comments on commit 82c3aca

Please sign in to comment.