# Loading gem from vendor/gems in rake

**URL:** <https://www.ruby-forum.com/t/loading-gem-from-vendor-gems-in-rake/142248>\
**Category:** Rails\
**Created:** [July 5, 2008, 6:28am UTC](https://www.ruby-forum.com/t/loading-gem-from-vendor-gems-in-rake/142248 "2008-07-05T06:28:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dkam](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/e5b9ba/32.png) [@dkam](https://www.ruby-forum.com/u/dkam)\
**Post date:** [July 5, 2008, 6:28am UTC](https://www.ruby-forum.com/t/loading-gem-from-vendor-gems-in-rake/142248/1 "2008-07-05T06:28:55Z")

</div>

Using Rails 2.1 gem dependencies, is there a way to load a gem that is  
unpacked in vendor/gems from a Rake task? I have a gem that I only  
want to use from Rake, so I don’t want to put it in environment.rb  
using config.gem.

I know you can add the gem’s lib directory to the load path, but I’m  
looking for something that would load the gem using the same process  
as Rails does.

Thanks,  
Dan
