via Gregory Brown (@seacreature) on Twitter:
Wrong way to deal with the 1.9.2 removal of . from the loadpath:
require "./foo/bar"
forces you to run code from your project root$LOAD_PATH.unshift(".")
recreates security issue, and pollutes
Right way to deal with the 1.9.2 removal of . from the loadpath:
require_relative "foo/bar"
if you don't need Ruby 1.8 compatibilityrequire "#{File.dirname(__FILE__)}/foo/bar"
if Ruby 1.8 compatibility needed
Requiring a file somewhere else in the project relative to this file:
require File.expand_path('../path/to/file', File.dirname(__FILE__))