rails/rails — pull request #5146 by tomekw (2012-02-23 20:43:22+00:00)
Title: Return 204 No Content status when resource is blank

I know it's maybe naive implementation and tests are not perfect. Please advise if it makes sense and/or how to improve this.

I don't know if it would be better to inline the condition (I wanted this to be more readable):

``` ruby
if get?
display resource, status => (resource.present? ? :ok : :no_content)
end
```