1 2 3 4 5 6 7 8 9 10
def ensure_requirable(libs) bundler = File.join(File.dirname(__FILE__), '..', 'vendor', 'gems', 'environment') require bundler if File.exist?("#{bundler}.rb") begin libs.each { |lib| require lib } rescue LoadError => e abort e.message end end