Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RubyForge-21291] Eliminate most "require File.dirname(__FILE__) + ..." #26

Open
hedgehog opened this issue Jan 29, 2010 · 1 comment
Open

Comments

@hedgehog
Copy link

Date:2008-07-21 11:30
Priority:3
Submitted By:Dean Wampler (deanwampler)
Assigned To:Dean Wampler (deanwampler)
Category:Refactorings
State:Open
Summary:Eliminate most "require File.dirname(FILE) + ..."

Detailed description

As Micah Martin blogged, http://blog.8thlight.com/articles/2007/10/08/micahs-general-guidelines-on-ruby-require, you can avoid most of these by setting your path properly. Refactor Aquarium to use these idioms.

@hedgehog
Copy link
Author

The approach taken by datamapper might be worth looking at:
http://datamapper.org/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant