Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Remove require 'rake' from Rakefile?

#4851

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. :)

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

State: wontfix
Milestone: none
Assigned to: José Valim José Valim
Importance: Low

Activity

  1. David Trasbo
    David Trasbo
    • Assigned user set to José Valim

    June 29th, 2010 @ 10:22 AM

  2. José Valim
    José Valim
    • State changed from new to wontfix
    • Importance changed from to Low

    Rake can be invoked both as ruby Rakefile and also load 'Rakefile'. Removing require rake will break this behavior.

    June 29th, 2010 @ 04:50 PM