Sha256: 47d3fa4e37458eafe3b99989d356ec897b2194e86409d03c91b1224c3628c81d
Contents?: true
Size: 575 Bytes
Versions: 3
Compression:
Stored size: 575 Bytes
Contents
# frozen_string_literal: true require 'bundle_notification/deliver' require 'bundle_notification/snippet_message' module BundleNotification module MailerHelper extend ActiveSupport::Concern class_methods do def deliver_unsent_snippets Deliver.new(to_s).deliver_unsent_snippets end end def snippet(recipient, snippet_data) # SnippetMessage will replace Mail::Message of ActionMailer::MessageDelivery @_mail_was_called = true @_message = SnippetMessage.new(self.class.to_s, recipient, snippet_data) end end end
Version data entries
3 entries across 3 versions & 1 rubygems