Created
January 21, 2013 14:16
-
-
Save ordinaryzelig/4586363 to your computer and use it in GitHub Desktop.
after moving things to middleware
This file contains 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
send(route.fetch(:http_method).downcase, url) { | |
if (handler) | |
respond_with_json_protocol do |protocol| | |
handler.add_to_response(params, protocol) | |
end | |
else | |
erb route.fetch(:name) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment