diff options
author | Joe Van Dyk <joe@fixieconsulting.com> | 2012-04-21 03:10:25 -0700 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2012-04-23 06:04:52 -0700 |
commit | 82c3aca17e78d25f217702e530586673f2a219d7 (patch) | |
tree | 6b9e06624f3dc4414b6197290b94063efd8051a2 /railties/lib/rails/tasks | |
parent | 5f6ef504b12dc2540461ff2d3414aba68215cb56 (diff) | |
download | rails-82c3aca17e78d25f217702e530586673f2a219d7.tar.gz rails-82c3aca17e78d25f217702e530586673f2a219d7.tar.bz2 rails-82c3aca17e78d25f217702e530586673f2a219d7.zip |
Only include Rake::DSL if it's defined.
rake < 0.9 doesn't define Rake::DSL.
Diffstat (limited to 'railties/lib/rails/tasks')
-rw-r--r-- | railties/lib/rails/tasks/documentation.rake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails/tasks/documentation.rake b/railties/lib/rails/tasks/documentation.rake index 2851ca4189..4ec49eee76 100644 --- a/railties/lib/rails/tasks/documentation.rake +++ b/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 |