venue_management/app/models/venue_management_email.rb

9 lines
166 B
Ruby

class VenueManagementEmail
include Mongoid::Document
include Mongoid::Timestamps
field :email_id
def email
Email.find(self.email_id) rescue nil
end
end