4 ms·
Agreed. I wonder if it's cosmetic or if you can't actually require files in the same directory as __FILE__ via the load path. Then again, this will probably on
by augustl 16y ago
Agreed. I wonder if it's cosmetic or if you can't actually require files in the same directory as __FILE__ via the load path.
Then again, this will probably only break snippets outside of projects, where lib/ is in the load path.
- manveru 16y agoUse require_relative if you want to require files relative to __FILE__, that way you don't have to worry about $LOAD_PATH and keep your sanity :)