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.

There was a problem

You must be a member of this account.

This project is archived and is in readonly mode.

[PATCH] Remove useless require

#3802

In railties/lib/rails/application.rb there's a require 'rails/plugin' which then does require 'rails/engine', then back in application.rb there's another call to require 'rails/engine' which doesn't need to be there because plugin.rb already has it.

Patch attached!

Reported by Ryan Bigg · January 28th, 2010 @ 06:52 AM

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

Activity

  1. Rizwan Reza
    Rizwan Reza
    • State changed from new to verified
    • Tag changed from 3.0, 3.0pre, railties to 3.0, 3.0pre, patch, railties
    • Assigned user set to José Valim
    • Milestone cleared.

    +1 verified, makes sense. Applied it to master and does so cleanly.

    January 28th, 2010 @ 01:52 PM

  2. José Valim
    José Valim
    • State changed from verified to wontfix

    In my opinion, the application object should not be concerned if a plugin is an engine or not (it was not true until some days ago) since the only API the application uses from plugins is: "Plugin.all". Usually we have some extra requires, but this one is there intentionally. :) Thanks for checking this area guys!

    January 28th, 2010 @ 02:06 PM

  3. Jeremy Kemper
    Jeremy Kemper
    • Milestone set to 3.0.2
    • Importance changed from to Low

    October 15th, 2010 @ 11:01 PM