It should not be present.

Max.


On 27 November 2013 13:41, Jan Szumiec <notifications@github.com> wrote:

> In app/views/courts/index.json.jbuilder:
>
> > @@ -7,7 +7,7 @@ json.courts do
> >    json.array! @courts.visible do |court|
> >      json.set! "@id", [request.original_url, court.slug].join('/') if court.slug?
> >
> > -    json.image court.image_file_url if court.image_file_url
> > +    json.image court.image_file_url if court.image_file_url.present?
>
> Should the attr be not present, or should it be set to nil?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/ministryofjustice/courtfinder/pull/80/files#r7956937>
> .
>