Sha256: 3b03c4e8173c9e525896c2285cc22e36456c7b0bcd5eb6158d871358d7e3a06b

Contents?: true

Size: 1.07 KB

Versions: 9

Compression:

Stored size: 1.07 KB

Contents

o:$YARD::CodeObjects::MethodObject:@current_file_has_commentsF:
@linei:@scope:
instance:@docstringIC:YARD::Docstring":@ref_tags[:@objectu:YARD::StubProxy*MailEngine::MailLogSubscriber#deliver:
@summary0:	@all":@line_range0:
@tags[:@parameters[["
event0:@namespaceu;"MailEngine::MailLogSubscriber:@files[["+lib/mail_engine/mail_log_subscriber.rbi:
@name:deliver:
@dynamicT:
@path"*MailEngine::MailLogSubscriber#deliver:@visibility:public:@source_type:	ruby:@signature"def deliver(event):@source"'def deliver(event)
  log_mail_config = MailEngine::Base.current_config["log_mail"]
  return false if log_mail_config.blank? or !log_mail_config

  MailEngine::MailLog.create!({
    :mail_template_path => event.payload[:message_id],
    :subject            => event.payload[:subject],
    :raw_body           => event.payload[:mail],
    :recipient          => event.payload[:to].inspect,
    :sender             => event.payload[:from].inspect,
    :mime_type          => event.payload[:mail].scan(/Content-Type: ([^;\r\n]*)/).flatten.inspect
  })
end:@explicitT;[

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
mail_engine-0.1.15 .yardoc/objects/MailEngine/MailLogSubscriber/deliver_i.dat
mail_engine-0.1.14 .yardoc/objects/MailEngine/MailLogSubscriber/deliver_i.dat
mail_engine-0.1.13 .yardoc/objects/MailEngine/MailLogSubscriber/deliver_i.dat
mail_engine-0.1.12 .yardoc/objects/MailEngine/MailLogSubscriber/deliver_i.dat
mail_engine-0.1.11 .yardoc/objects/MailEngine/MailLogSubscriber/deliver_i.dat
mail_engine-0.1.10 .yardoc/objects/MailEngine/MailLogSubscriber/deliver_i.dat
mail_engine-0.1.9 .yardoc/objects/MailEngine/MailLogSubscriber/deliver_i.dat
mail_engine-0.1.8 .yardoc/objects/MailEngine/MailLogSubscriber/deliver_i.dat
mail_engine-0.1.7 .yardoc/objects/MailEngine/MailLogSubscriber/deliver_i.dat