Sha256: 77bc8ddf9870ae78cc53a3e2a86036d3476f1066767bfc2cebd3d31a9bc9e8ac

Contents?: true

Size: 248 Bytes

Versions: 4

Compression:

Stored size: 248 Bytes

Contents

# frozen_string_literal: true

module Thermos
  module Notifier
    extend ActiveSupport::Concern

    included do
      after_commit :notify_thermos
    end

    private

    def notify_thermos
      RefillJob.perform_later self
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
thermos-0.5.0 lib/thermos/notifier.rb
thermos-0.4.1 lib/thermos/notifier.rb
thermos-0.4.0 lib/thermos/notifier.rb
thermos-0.3.0 lib/thermos/notifier.rb