Sha256: 9c29e7a22dea230f2a98e262536c74cc106757d4a16649f2e138ba1302a33c11
Contents?: true
Size: 1.24 KB
Versions: 32
Compression:
Stored size: 1.24 KB
Contents
# # ishapi / reports / show # params.permit! key = [ @report, params ] json.cache! key do json.report do json.id @report.id.to_s json.name @report.name json.reportname @report.name_seo if @report.photo json.photo_url @report.photo.photo.url( :small ) json.thumb_url @report.photo.photo.url( :thumb ) end # @TODO: move this to meta json.created_at @report.created_at.strftime('%Y%m%d') json.updated_at @report.updated_at.strftime('%Y%m%d') json.username @report.user_profile.name if @report.user_profile json.cityname @report.city.cityname if @report.city json.tagname @report.tag.name_seo if @report.tag json.subhead @report.subhead json.description @report.descr if @report.photo json.photo do json.thumb_url @report.photo.photo.url :thumb json.small_url @report.photo.photo.url :small json.large_url @report.photo.photo.url :large end end end # @deprecated, but specs use this _vp_ 20180423 if @report.photo json.photo do json.thumb_url @report.photo.photo.url :thumb json.small_url @report.photo.photo.url :small json.large_url @report.photo.photo.url :large end end end
Version data entries
32 entries across 32 versions & 1 rubygems