On Thursday, January 16, 2014 3:21:25 PM UTC, Ruby-Forum.com User wrote: > > Fred - pricing_extensions lives in the test_company_libs Gem's > lib/tc_libs folder.
In that case you would do require 'tc_libs/pricing_extensions' Fred > I'm not sure how to add this to the ruby load path > and I'm a bit confused that I would have to because we use the > test_company_libs Gem in nearly every project we have and we don't have > to 'tweak' anything to load the gemfiles. > > Here's the load paths from the tc_libs.rb in the test_company_libs Gem: > > > $:.unshift File.join(File.dirname(__FILE__), 'tc_libs') > > module TestCompanyLibs > end > > Dir[File.join(File.dirname(__FILE__), '/tc_libs/*.rb')].each do |file| > next if File.basename(file, File.extname(file)) == 'version' > require File.basename(file, File.extname(file)) > end > > -- > Posted via http://www.ruby-forum.com/. > -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscr...@googlegroups.com. To post to this group, send email to rubyonrails-talk@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/6ca28262-b15a-4b98-a999-fb0e16058617%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.