2020-07-30 14:28:57 +00:00
|
|
|
class VenueManagementMemorabilia
|
|
|
|
include Mongoid::Document
|
|
|
|
include Mongoid::Timestamps
|
|
|
|
include Mongoid::Enum
|
|
|
|
|
|
|
|
field :event_date, type: Date, default: Time.now
|
|
|
|
field :details, localize: true
|
2020-08-02 13:33:41 +00:00
|
|
|
def case_no
|
|
|
|
inviting = self.venue_management_inviting
|
|
|
|
if !inviting.nil?
|
|
|
|
inviting.case_no
|
|
|
|
else
|
|
|
|
nil
|
|
|
|
end
|
|
|
|
end
|
|
|
|
belongs_to :venue_management_inviting
|
2020-07-30 14:28:57 +00:00
|
|
|
belongs_to :venue_management_main
|
2020-08-02 13:33:41 +00:00
|
|
|
include VenueLinkFile
|
2020-07-30 14:28:57 +00:00
|
|
|
end
|