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.

[PATCH] Refactor requires

#4877

Found that all files on the folder were being required separately.
I refactored that require.

Reported by Sebastian Martinez · June 16th, 2010 @ 10:04 PM

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

Activity

  1. Sebastian Martinez
    Sebastian Martinez
    • Tag changed from rails3 to activesupport, rails3
    • Title changed from Refactor requires to [PATCH] Refactor requires

    June 16th, 2010 @ 10:32 PM

  2. Sebastian Martinez
    Sebastian Martinez
    • Assigned user changed from Yehuda Katz (wycats) to José Valim

    June 20th, 2010 @ 11:13 PM

  3. José Valim
    José Valim

    Why the way it's currently in Rails is an issue?

    June 20th, 2010 @ 11:40 PM

  4. Sebastian Martinez
    Sebastian Martinez

    It's not wrong, just found that it was requiring all the files on the folder one by one and refactored it.
    If we add another file to the integer folder no new require line would be needed this way.

    June 20th, 2010 @ 11:46 PM

  5. José Valim
    José Valim
    • State changed from new to invalid

    I find the current way much more readable. It could make sense though if we had several files.

    June 20th, 2010 @ 11:50 PM