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 class VenueManagementBill
include Mongoid::Document include Mongoid::Document
include Mongoid::Timestamps include Mongoid::Timestamps
require 'mongoid/enum'
include 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']} 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'] 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 class VenueManagementContract
include Mongoid::Document include Mongoid::Document
include Mongoid::Timestamps include Mongoid::Timestamps
require 'mongoid/enum'
include Mongoid::Enum include Mongoid::Enum
PAYERS = [ :school, :vendor].freeze PAYERS = [ :school, :vendor].freeze

View File

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

View File

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

View File

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