refraction
refraction copied to clipboard
Possible problem in config.middleware.insert_before line
Refraction rocks. I just had one small problem setting it up. Using
config.middleware.insert_before(::Rack::Lock, ::Refraction, {})
in production.rb gives me the error
gems/refraction-0.2.0/lib/refraction.rb:98:in `initialize':
wrong number of arguments (2 for 1) (ArgumentError)
(I'm running Rails 3.0.0.beta4.)
I removed the third argument and it worked:
config.middleware.insert_before(::Rack::Lock, ::Refraction)
Had the same problem with Rails 3.0.5. Did the same suggested fix as mhartl and now it works fine, fwiw.
I got same issue on heroku. But it works with webrick.
Happened to me also. Removed third argument and works now.