This project is archived and is in readonly mode.
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
-
David Trasbo June 29th, 2010 @ 10:22 AM
- Assigned user set to José Valim
-
José Valim June 29th, 2010 @ 04:50 PM
- 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.
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>