0
comment
comment
on 8/31/2015 5:17 AM
Instead of using:
$:.unshift File.dirname(__FILE__)
to add a folder to the path, a better way inside your ruby code is to use:
require_relative 'subfolder/file'
in order to require files. You can also use a relative path in require (i.e. ‘./subfolder/file’).