
json.cache_root! [Recipe.all, @recipes] do

  json.extract! @recipes, :total_count, :total_pages, :current_page
  json.page_size @recipes.limit_value

  json.recipes @recipes do |r|
    json.extract! r, :id, :name, :rating, :yields, :total_time, :active_time, :created_at, :updated_at

    json.tags r.tag_names
  end

end