Rails 2.3.8 `load_missing_constant':NameError: uninitialized constant Refraction when including Gem via Bundler
nwp opened this issue · 2 comments
nwp commented
I don't know if it's a Bundler issue or a Refraction issue, but when I attempt to use the Gem via Bundler, I receive an error on boot while things work fine if I include Refraction as a plugin. I'd much prefer to use the Gem.
`load_missing_constant':NameError: uninitialized constant Refraction
My environment files includes:
config.middleware.insert_before(::Rack::Lock, ::Refraction, {})
johnlauck commented
use config.middleware.insert_before("::Rack::Lock", "::Refraction", {})
nwp commented
That works! Thanks so much for the suggestion.