1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

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

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