Rake::DSL should always be available

This commit is contained in:
Jeremy Kemper 2012-05-31 11:56:08 -07:00
parent 5f91ea3dc1
commit c1a0c7782e
1 changed files with 1 additions and 1 deletions

View File

@ -191,7 +191,7 @@ module Rails
def load_tasks(app=self)
require 'rake'
extend Rake::DSL if defined? Rake::DSL
extend Rake::DSL
self.class.rake_tasks.each { |block| self.instance_exec(app, &block) }
# load also tasks from all superclasses