lib/unforlogistics/api.rb in unforlogistics-api-0.5 vs lib/unforlogistics/api.rb in unforlogistics-api-0.6
- old
+ new
@@ -1,6 +1,8 @@
require 'unfor_base_api'
-require 'unforlogistics/core/locations'
+
+core_dir = File.expand_path('../core', __FILE__)
+Dir["#{core_dir}/**/*.rb"].each {|file| require file }
module Unforlogistics
class Api < ::UnforBaseApi
include Unforlogistics::Core::Locations
end