From d486f549e44bfe7615a5df268007d41649b186dd Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Fri, 14 Nov 2014 11:18:11 +0100 Subject: Autoload using require_relative instead. --- parse_report.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parse_report.rb b/parse_report.rb index 714c746..4fe7668 100644 --- a/parse_report.rb +++ b/parse_report.rb @@ -22,7 +22,7 @@ end def load_reports Dir[File.join('lib', 'reports', '*.rb')].each do |f| - require File.expand_path(f, File.dirname(__FILE__)) + require_relative f end end -- cgit v1.2.3