# Plugin using own gem

**URL:** https://meta.discourse.org/t/plugin-using-own-gem/50007
**Category:** Development
**Created:** [September 12, 2016, 11:11am UTC](https://meta.discourse.org/t/plugin-using-own-gem/50007 "2016-09-12T11:11:58Z")
**Posts on this page:** 1
**Showing post:** 6

<div class="post-metadata">

### Author: ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)
#### Post date: [September 12, 2016, 9:27pm UTC](https://meta.discourse.org/t/plugin-using-own-gem/50007/6 "2016-09-12T21:27:14Z")

</div>

Gems declared in a plugin are installed and loaded differently as per our implementation:

> <https://github.com/discourse/discourse/blob/main/lib/plugin/instance.rb#L353-L381>

In order to get it to work, you’ll have to specify all the gem’s dependencies which are not already included in the Gemfile.

---

_[View the full topic](https://meta.discourse.org/t/plugin-using-own-gem/50007)._
