Sha256: 8c36de0d51b1841fe56e3739dfcef5f060e50927f42454f1c6da0eb1d9e55fed

Contents?: true

Size: 1.63 KB

Versions: 9

Compression:

Stored size: 1.63 KB

Contents

o:$YARD::CodeObjects::MethodObject:@current_file_has_commentsT:
@linei!:@scope:
class:@docstringIC:YARD::Docstring"±send mail template with given data.
=== example

  MailEngine::Base.send_marketing_mail("newsletter", :to => 'm@theplant.jp', :values => {:users => MailEngine::USER_MODEL.last}):@ref_tags[:@objectu:YARD::StubProxy)MailEngine::Base.send_marketing_mail:
@summary0:	@all[
"(send mail template with given data."=== example""€  MailEngine::Base.send_marketing_mail("newsletter", :to => 'm@theplant.jp', :values => {:users => MailEngine::USER_MODEL.last})":@line_rangeo:
Range:endi :
begini:	exclF:
@tags[:@parameters[["
template0["
*args0:@namespaceu;MailEngine::Base:@files[["lib/mail_engine/base.rbi!:
@name:send_marketing_mail:
@dynamicT:
@path")MailEngine::Base.send_marketing_mail:@docstring_extra0:@visibility:public:@source_type:	ruby:@signature"-def send_marketing_mail(template, *args):@source"³def send_marketing_mail(template, *args)
  options = args.extract_options!
  options[:locale] ||= I18n.locale

  # ensure the :to parameter.
  raise "Should specify :to option" if options[:to].blank?

  # find the template from database.
  template_path = File.join("mail_engine", "mail_dispatcher", template)
  unless mail_template = MailEngine::MailTemplate.where(:path => template_path, :locale => options[:locale], :for_marketing => true, :partial => false).first
    raise "Can't find the template: #{template_path}"
  end

  options[:subject] ||= mail_template.subject
  I18n.with_locale(mail_template.locale) do
    MailEngine::MailDispatcher.send(template, options).deliver
  end
end:@explicitT;[

Version data entries

9 entries across 9 versions & 1 rubygems

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