Sha256: 186df91dd76d5451002bcd341bd555b24ccf2f135af074c1948595e1b7cd267a
Contents?: true
Size: 271 Bytes
Versions: 2
Compression:
Stored size: 271 Bytes
Contents
# frozen_string_literal: true module Thermos module Notifier extend ActiveSupport::Concern included do after_commit :notify_thermos, on: %i[create update] end private def notify_thermos RefillJob.perform_later self end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
thermos-0.5.2 | lib/thermos/notifier.rb |
thermos-0.5.1 | lib/thermos/notifier.rb |