app/views/ishapi/features/_index.jbuilder in ishapi-0.1.8.19 vs app/views/ishapi/features/_index.jbuilder in ishapi-0.1.8.20
- old
+ new
@@ -10,9 +10,11 @@
r = feature.report
json.report_id r.id.to_s
json.name r.name
json.subhead r.subhead
json.reportname r.name_seo
- json.photo_url r.photo.photo.url( :thumb )
+ if r.photo
+ json.photo_url r.photo.photo.url( :thumb )
+ end
end
end
end