9 lines
210 B
Ruby
9 lines
210 B
Ruby
class Api::Restaurant::OutOfStockController < Api::ApiController
|
|
skip_before_action :authenticate
|
|
|
|
def index
|
|
date = params[:date]
|
|
@out_of_stock = OutOfStock.where("DATE(date) = ?", date)
|
|
end
|
|
end
|