How to: YourGem.configure

Really cool gems, like Carrierwave for example, have this neat feature of configuring the gem in runtime. It allows you to easily configure how the gem will behave in your app. For example, you can add various authentication keys, how errors should be handled and what not. If you want to add this cool functionality in your gems, read on to find out more. Personally, I love to implement (and use) this way of configuring libraries in runtime....

May 18, 2015 · 4 min · Ilija