Sha256: a2802e32dad16b32df67a8356def01c3533f1f58408ff76e13edc75435a7c142
Contents?: true
Size: 1.63 KB
Versions: 6
Compression:
Stored size: 1.63 KB
Contents
o:$YARD::CodeObjects::MethodObject:@visibility:public:@source_type: ruby:@scope: class:@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: @tags[ :@current_file_has_commentsT: @linei:@signature"-def send_marketing_mail(template, *args):@files[["lib/mail_engine/base.rbi: @name:send_marketing_mail: @path")MailEngine::Base.send_marketing_mail:@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}): @all[ "(send mail template with given data."=== example"