• D
    Override default_render's behavior with a block · 6fda6c37
    Dave Copeland 提交于
    In 0de4a23d the behavior when there is a missing template was changed to
    not raise an error, but instead head :no_content.  This is a breaking
    change and some gems rely on this happening.
    
    To allow gems and other code to work around this, allow
    `default_render` to take a block which, if provided, will
    execute the contents of that block instead of doing the `head :no_content`.
    6fda6c37
implicit_render.rb 1.2 KB