Rake::DSL should always be available
This commit is contained in:
parent
5f91ea3dc1
commit
c1a0c7782e
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue