This project is archived and is in readonly mode.

#4851 ✓wontfix
David Trasbo

Remove require 'rake' from Rakefile?

Reported by David Trasbo | June 13th, 2010 @ 07:33 PM

The standard application Rakefile looks like this:

# Add your own tasks in files placed in lib/tasks ending in .rake,
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.

require File.expand_path('../config/application', __FILE__)
require 'rake'

Rails::Application.load_tasks

So this is my question: Why the require 'rake'? I tried removing it and running a Rake task works perfectly like before.

I've attached a patch (applies to master) that removes the line. In case there's an actual reason it's there it can be ignored. :)

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

Attachments

Pages