Add 'mongoid/enum' to gem dependency.

This commit is contained in:
BoHung Chiu 2020-11-13 15:00:10 +08:00
parent dcaa9f0ef1
commit a885881651
5 changed files with 5 additions and 1 deletions

View File

@ -2,6 +2,7 @@ require 'orbit_form_helper'
class VenueManagementBill
include Mongoid::Document
include Mongoid::Timestamps
require 'mongoid/enum'
include Mongoid::Enum
BILLTYPE = {'venue_fee'=>["usage_fee", "royalties", "admin_fee", "land_rent"],'utility_bill'=>['electricity','water'],'tax'=>['house_tax','land_tax'],'prejudgment_interest'=>["usage_fee", "royalties", "admin_fee", "land_rent",'electricity','water','house_tax','land_tax','other'],'other'=>['penalty','other']}
NOTFIELDKEY = ['float','fields','clear','no_margin','unit','display_title','display_unit','option_select']

View File

@ -5,6 +5,7 @@ require 'orbit_form_helper'
class VenueManagementContract
include Mongoid::Document
include Mongoid::Timestamps
require 'mongoid/enum'
include Mongoid::Enum
PAYERS = [ :school, :vendor].freeze

View File

@ -5,6 +5,7 @@ require 'orbit_form_helper'
class VenueManagementInviting
include Mongoid::Document
include Mongoid::Timestamps
require 'mongoid/enum'
include Mongoid::Enum
include OrbitTag::Taggable
PAYERS = [ :school, :vendor].freeze

View File

@ -1,6 +1,7 @@
class VenueManagementMemorabilia
include Mongoid::Document
include Mongoid::Timestamps
require 'mongoid/enum'
include Mongoid::Enum
field :event_date, type: Date, default: Time.now

View File

@ -4,7 +4,7 @@
Gem::Specification.new do |s|
s.name = "venue_management"
s.version = "0.0.1"
s.add_dependency 'mongoid-enum'
s.authors = ["chiu"]
s.description = "Venue Management plugin."
s.email = ["naruto0426@rulingcom.com"]