# Gemfile
gem "mygem", require: false
This means you’ll have to explicitly require "mygem" when using the library. It can be useful when you don’t want the whole rails app to load the gem to memory.
A good use-case might be — if you only need the gem as part of a rake task. Then only requiring the gem within the scope of a rake task surely minimizes the memory usage of the rails app.