Sha256: fc047656ea3cb0f28e497359b3bc9d630b7bdb071723a12d9dfcfc04c4154d71
Contents?: true
Size: 464 Bytes
Versions: 7
Compression:
Stored size: 464 Bytes
Contents
module Qe module ActionMailer MissingMailNameError = Class.new(StandardError) AbstractMethodError = Class.new(StandardError) def mail raise MissingMailNameError, "the :mail option is not defined" unless options[:mail] mailer.public_send(options[:mail], options) end def mailer raise AbstractMethodError, "you must implement the mailer method" end def perform mail.deliver end end end
Version data entries
7 entries across 7 versions & 1 rubygems