0

This has got to be a duplicate question, but I can't find the magic words on Google.

What are the best practices when including a library that isn't a gem (in other words: a library that is part of Ruby but nonetheless requires an explicit require)? Should I require it in config/environment.rb?

Thanks.

ucarion
  • 751
  • 2
  • 8
  • 15
  • http://stackoverflow.com/questions/3356742/best-way-to-load-module-class-from-lib-folder-in-rails-3 – prusswan Aug 22 '13 at 01:08
  • @prusswan: I don't think that's what I want; I'm trying to include a library that is part of Ruby but still requires an explicit `require`. – ucarion Aug 22 '13 at 01:32

1 Answers1

1

In your config directory there is a initializers directory. There you can create a rb file with your include statement

Benjamin Bouchet
  • 12,971
  • 2
  • 41
  • 73