Created
May 4, 2012 06:00
-
-
Save millisami/2592418 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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