Skip to content
Create a gist now

Instantly share code, notes, and snippets.

Using it like following, it doesn't work.
config.middleware.use RackAfterReply do |env|
env['rack_after_reply.callbacks'] << lambda { }
end
And running the rake:
rake middleware -t
/Users/millisami/.rvm/gems/ruby-1.9.3-p0/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:240:in `block in require': iconv will be deprecated in the future, use String#encode instead.
** Invoke middleware (first_time)
** Invoke environment (first_time)
** Execute environment
rake aborted!
undefined method `new' for RackAfterReply:Module
/Users/millisami/.rvm/gems/ruby-1.9.3-p0/gems/actionpack-3.1.3/lib/action_dispatch/middleware/stack.rb:43:in `build'
/Users/millisami/.rvm/gems/ruby-1.9.3-p0/gems/actionpack-3.1.3/lib/action_dispatch/middleware/stack.rb:112:in `block in build'
....
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.