Newer
Older
validates :user_id, presence: true
validates :post_id, presence: true
after_create :send_report_notification
def send_report_notification
Workers::Mail::ReportWorker.perform_async(self.post_type, self.post_id)