rails/jbuilder — pull request #9 by inossidabile (2012-01-04 18:27:38+00:00)
Title: More proper handling of template handler

Template handler rewritten as a class instead of Proc to:

1) Improve readability
2) Set default_format to Mime::JSON which allows to skip dummy type-dependent code in controllers and makes it not to include layout by default. Both are quite expected behaviors for JSON templates (that's how all the alternative libraries work and I can't believe it's a feature).