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.

Ruby 1.9.2 compat: use File#expand_path for require path in script/*

#2921

"." will no more be included in LOAD_PATH since Ruby 1.9.2.

Attached a patch to use File#expand_path for require path in order to call script/* scripts from RAILS_ROOT.

Reported by Akira Matsuda · July 19th, 2009 @ 07:12 AM

State: resolved
Milestone: 2.x
Assigned to: nobody
Importance: none

Activity

  1. Akira Matsuda
    Akira Matsuda

    Just renamed the attached filename.

    July 19th, 2009 @ 07:14 AM

  2. Repository
    Repository
    • State changed from new to resolved

    (from [9163b9ac9d0b986cb5de2af63a8ed50ffc8ece71]) Ruby 1.9.2 compat: Use File#expand_path for require path because "." will not be included in LOAD_PATH since Ruby 1.9.2 [#2921 Ruby 1.9.2 compat: use File#expand_path for require path in script/* state:resolved]

    Signed-off-by: Yehuda Katz wycats@gmail.com
    http://github.com/rails/rails/commit/9163b9ac9d0b986cb5de2af63a8ed5...

    July 21st, 2009 @ 08:10 AM

  3. Repository
    Repository

    (from [7a427a83ca4da92c70760007aaf313638a5d8374]) Ruby 1.9.2 compat: Use File#expand_path for require path because "." will not be included in LOAD_PATH since Ruby 1.9.2 [#2921 Ruby 1.9.2 compat: use File#expand_path for require path in script/* state:resolved]

    Signed-off-by: Yehuda Katz wycats@gmail.com
    http://github.com/rails/rails/commit/7a427a83ca4da92c70760007aaf313...

    July 21st, 2009 @ 09:17 AM

  4. bingbing