master
 1json.cache! items do
 2  json.array! items do |cake|
 3    json.id cake.id
 4    json.name cake.name
 5    json.slug cake.to_param
 6    json.story cake.story
 7    json.created_at cake.created_at
 8    json.updated_at cake.updated_at
 9    json.category do
10      json.id cake.category.id
11      json.name cake.category.name
12    end
13    json.user do
14      json.id cake.user.id
15      json.name cake.user.name
16    end
17    json.photos cake.photos do |photo|
18      json.id photo.id
19      json.large_url "https:#{photo.url_for(:large)}"
20      json.thumb_url "https:#{photo.url_for(:thumb)}"
21      json.created_at photo.created_at
22      json.updated_at photo.updated_at
23    end
24    json.tags cake.tags do |tag|
25      json.id tag.id
26      json.name tag.name
27    end
28  end
29end