class School::Legacy::AlaCarteController < ApplicationController
  def index
    render_success :ok, json: lunch_items.map { |i| props(i) }
  end

  private
    def lunch_items
      current_school.lunch_items
    end

    def props(item)
      {
        id: item.id,
        name: item.name,
        amount: item.amount
      }
    end
end
