23 lines
537 B
Ruby
23 lines
537 B
Ruby
class Origami::AddordersController < BaseOrigamiController
|
|
before_action :set_dining, only: [:show]
|
|
|
|
def index
|
|
@tables = Table.all.active.order('zone_id asc').group("zone_id")
|
|
@rooms = Room.all.active.order('zone_id asc').group("zone_id")
|
|
@all_table = Table.all.active.order('status desc')
|
|
@all_room = Room.all.active.order('status desc')
|
|
end
|
|
|
|
def show
|
|
@menu = MenuCategory.all
|
|
@table_id = params[:id]
|
|
end
|
|
|
|
private
|
|
|
|
def set_dining
|
|
@dining = DiningFacility.find(params[:id])
|
|
end
|
|
|
|
end
|