If you have a rack middleware packaged as a gem that you would like to use in your rails app, add these lines to your environment.rb file:
1 2 |
|
Make sure you put the middleware name in a string, or rails initialization will fail because the gem hasn’t loaded yet.