summaryrefslogtreecommitdiff
path: root/app/views/application/json/_photos.jbuilder
blob: f7b6be484e721712bfbd026aceac1379a02861d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
json.array! @photos do |photo|
  json.cache! ['v1', photo] do
    json.id photo.id
    json.cake_id photo.imageable_id
    json.content_type photo.content_type
    json.original_filename photo.original_filename
    json.thumb_url photo.url_for(:thumb)
    json.large_url photo.url_for(:large)
    json.original_url photo.url_for(:original)
    json.created_at photo.created_at
    json.updated_at photo.updated_at
  end
end