Sha256: 69339c4aa76df6de738aedddb4934f9519dfd549b56b145fac229eed8f62116e
Contents?: true
Size: 762 Bytes
Versions: 43
Compression:
Stored size: 762 Bytes
Contents
# frozen_string_literal: true module Cron # # Base class for WeeklyJobs. # # Support running only on certain days as defined by day_of_week method # class Job < ApplicationJob cattr_accessor :cron_tab # # Method to set the cron_tab # def self.cron_tab_entry(entry) self.cron_tab = entry end # # Sends support an email if something goes awry # def send_support_email(error, event) email = EmailNotification.new email.to = 'support@app47.com' params = { current_date: I18n.l(Time.zone.today, format: :medium), event: event, error: error } email.from_template('support_ticket_notification', params) email.send_notification end end end
Version data entries
43 entries across 43 versions & 1 rubygems