Sha256: dbc09eee4014e8db51c5bc0b3c339c0dd36e1215c07aa5ca34c3242bd2fa0784
Contents?: true
Size: 423 Bytes
Versions: 5
Compression:
Stored size: 423 Bytes
Contents
class DelayedJob < ApplicationRecord after_update :telegram_me private def telegram_me if saved_change_to_attribute?(:last_error) require 'telegram' telegram = Telegram.new telegram.sendSticker :pepe_depression, :tech message = "Хьюстон ! У нас проблемы в Delayed Job::#{self.queue} #{self.last_error}" telegram.sendMessage message, :tech end end end
Version data entries
5 entries across 5 versions & 1 rubygems