Requiring external gems

(Kgish) #1

For a plugin that I am writing, I would like to use some external gem files that are not present in the default discourse gemfile.

What is the standard way of doing this without being able to modify the discourse gemfile?

Also a similar question reqarding user-defined rake tasks.

(Rafael dos Santos Silva) #2

Keep in mind you have to declare the gems AND dependencies.

Installing own gem in plugin
(Kgish) #3

Thanks, didn’t realize that all dependencies needed to be included as well.

How can I also do this for rake tasks?

(Régis Hanol) #4

Have you tried “LOAD_PLUGINS=1 rake your:rake:task”?