13 lines
279 B
Ruby
13 lines
279 B
Ruby
class Api::CallWaitersController < ActionController::API
|
|
|
|
#List all active customers by name
|
|
def index
|
|
@table_id = params[:dining_id]
|
|
@time = params[:time]
|
|
@table = DiningFacility.find(@table_id)
|
|
CallWaiterJob.perform_later(@table,@time)
|
|
end
|
|
|
|
|
|
end
|