venue_management/app/models/venue_management_email.rb

9 lines
166 B
Ruby
Raw Normal View History

2020-11-12 13:51:31 +00:00
class VenueManagementEmail
include Mongoid::Document
include Mongoid::Timestamps
field :email_id
def email
Email.find(self.email_id) rescue nil
end
end