From a8858816510ed034e041fa63a0be4c87b83722e3 Mon Sep 17 00:00:00 2001 From: bohung Date: Fri, 13 Nov 2020 15:00:10 +0800 Subject: [PATCH] Add 'mongoid/enum' to gem dependency. --- app/models/venue_management_bill.rb | 1 + app/models/venue_management_contract.rb | 1 + app/models/venue_management_inviting.rb | 1 + app/models/venue_management_memorabilia.rb | 1 + venue_management.gemspec | 2 +- 5 files changed, 5 insertions(+), 1 deletion(-) diff --git a/app/models/venue_management_bill.rb b/app/models/venue_management_bill.rb index 68b9741..e185155 100644 --- a/app/models/venue_management_bill.rb +++ b/app/models/venue_management_bill.rb @@ -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'] diff --git a/app/models/venue_management_contract.rb b/app/models/venue_management_contract.rb index b7e888d..a99ad24 100644 --- a/app/models/venue_management_contract.rb +++ b/app/models/venue_management_contract.rb @@ -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 diff --git a/app/models/venue_management_inviting.rb b/app/models/venue_management_inviting.rb index 4824618..56c71cd 100644 --- a/app/models/venue_management_inviting.rb +++ b/app/models/venue_management_inviting.rb @@ -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 diff --git a/app/models/venue_management_memorabilia.rb b/app/models/venue_management_memorabilia.rb index befe29a..ae72add 100644 --- a/app/models/venue_management_memorabilia.rb +++ b/app/models/venue_management_memorabilia.rb @@ -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 diff --git a/venue_management.gemspec b/venue_management.gemspec index f4c09fb..11078fe 100644 --- a/venue_management.gemspec +++ b/venue_management.gemspec @@ -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"]