# Registering gem dependency within plugin?

**URL:** <https://www.ruby-forum.com/t/registering-gem-dependency-within-plugin/142636>\
**Category:** Rails\
**Created:** [July 9, 2008, 11:47pm UTC](https://www.ruby-forum.com/t/registering-gem-dependency-within-plugin/142636 "2008-07-09T23:47:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![thorny\_sun](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/5f8ce5/32.png) [@thorny\_sun](https://www.ruby-forum.com/u/thorny_sun)\
**Post date:** [July 9, 2008, 11:47pm UTC](https://www.ruby-forum.com/t/registering-gem-dependency-within-plugin/142636/1 "2008-07-09T23:47:56Z")

</div>

Rails Gurus –  
In 2.1, is there a way to get a plugin to register a gem as a  
dependency. I was unable to get this working from the plugin’s  
init.rb-- it seems that it is read in too late in the init process?  
Is there something I’m missing?  
Thanks for the help! (and thanks as always for the best webdev  
environment ever!)

thorny\_sun
