wrong argument type Class (expected Module)
jmccartie opened this issue · comments
Jon McCartie commented
Added code snippet to config.ru:
# This file is used by Rack-based servers to start the application.
require 'gctools/oobgc'
if defined?(Unicorn::HttpRequest)
use GC::OOB::UnicornMiddleware
end
require ::File.expand_path('../config/environment', __FILE__)
run AwesomeApp::Application
When starting up, I get the following error:
.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/gctools-0.2.2/lib/gctools/oobgc/unicorn_middleware.rb:8:in `extend': wrong argument type Class (expected Module) (TypeError)
Any ideas on what I'm missing?
unicorn (4.5.0)
gctools (0.2.2)
Steve Purcell commented
Yep, I get this too:
unicorn (4.8.1)
gctools (0.2.2)
Kevin Sylvestre commented
Me as well:
unicorn (4.8.0)
gctools (0.2.2)
Nick Urban commented
Same here.
Kevin Sylvestre commented
Verified it fixed for me! Thanks for the very quick fix!
Steve Purcell commented
Fantastic, thanks so much!
Jon McCartie commented
thanks @tmm1!
Nick Urban commented
👍