venue_management/app/models/venue_management_email.rb

9 lines
166 B
Ruby
Raw Normal View History

2020-08-04 09:04:04 +00:00
class VenueManagementEmail
include Mongoid::Document
include Mongoid::Timestamps
field :email_id
def email
Email.find(self.email_id) rescue nil
end
end