Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Explicitly require rake so its DSL is available

  • Loading branch information...
commit 51af1e25789728248078db6b17989b252ac2e53c 1 parent 709e432
Jeremy Kemper jeremy authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  railties/lib/rails/railtie.rb
1  railties/lib/rails/railtie.rb
View
@@ -190,6 +190,7 @@ def load_runner(app=self)
end
def load_tasks(app=self)
+ require 'rake'
extend Rake::DSL if defined? Rake::DSL

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

extend Rake::DSL
Jeremy Kemper Owner
jeremy added a note

Sure enough: c1a0c77

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
self.class.rake_tasks.each { |block| self.instance_exec(app, &block) }
Matt Huggins

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

extend Rake::DSL
Please sign in to comment.
Something went wrong with that request. Please try again.