Origami update commit

This commit is contained in:
Cherry
2017-06-01 09:27:37 +06:30
parent 44e7d2452f
commit 47469cf466
5 changed files with 101 additions and 161 deletions

View File

@@ -1,6 +1,9 @@
class DiningFacility < ApplicationRecord
belongs_to :zone
TABLE_TYPE = "Table"
ROOM_TYPE = "Room"
default_scope { order('order_by asc') }
scope :active, -> {where(is_active: true)}