Skip to content

Commit

Permalink
Explicitly require rake so its DSL is available
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremy committed May 31, 2012
1 parent 709e432 commit 51af1e2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions railties/lib/rails/railtie.rb
Expand Up @@ -190,6 +190,7 @@ def load_runner(app=self)
end

def load_tasks(app=self)
require 'rake'
extend Rake::DSL if defined? Rake::DSL

This comment has been minimized.

Copy link
@mhuggins

mhuggins May 31, 2012

If rake is always being required, shouldn't this line be changed to just read:

extend Rake::DSL

This comment has been minimized.

Copy link
@jeremy

jeremy May 31, 2012

Author Member

Sure enough: c1a0c77

self.class.rake_tasks.each { |block| self.instance_exec(app, &block) }

Expand Down

0 comments on commit 51af1e2

Please sign in to comment.