• Markus Koller's avatar
    Return empty body for 204 responses in API · 29c26e46
    Markus Koller authored
    Previously these would just return the `.to_s` representation of the
    Grape route block expression, e.g. `"<Project:0x0000560fe150ce80>`.
    
    This is now changed to always use the `no_content!` helper. Since this
    aborts the execution we also have to tweak the order slightly,
    especially with the `destroy_conditionally!` helper.
    29c26e46
variables.rb 4.26 KB