Skip to content

Instantly share code, notes, and snippets.

@bluSch
Created April 30, 2014 21:03
Show Gist options
  • Save bluSch/bb053929ce1c06be3ff4 to your computer and use it in GitHub Desktop.
Save bluSch/bb053929ce1c06be3ff4 to your computer and use it in GitHub Desktop.
add require_relative to ruby 1.8
unless Kernel.respond_to?(:require_relative)
module Kernel
def require_relative(path)
require File.join(File.dirname(caller[0]), path.to_str)
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment