Sha256: 260e85befaa6bc63727e84925ffb94032fd6f4ea33199e91f0a373c1b376d4d3
Contents?: true
Size: 489 Bytes
Versions: 19
Compression:
Stored size: 489 Bytes
Contents
# require "eitil_core/kernel/loadquire" Kernel.module_eval do def loadquire(current_path, *relative_paths, ext: '.rb') file_paths = relative_paths.map do |relative_path| File.expand_path(relative_path, current_path).concat(ext) end if Object.const_defined?('Rails') && Rails.env.development? file_paths.each do |path| load(path) end else file_paths.each do |path| require(path) end end end end
Version data entries
19 entries across 19 versions & 1 rubygems