Method: SendGrid#sendgrid_substitute

Defined in:
lib/sendgrid.rb

#sendgrid_substitute(placeholder, subs) ⇒ Object

Call within mailer method to add an array of substitions NOTE: you must ensure that the length of the substitions equals the

length of the sendgrid_recipients.


138
139
140
141
# File 'lib/sendgrid.rb', line 138

def sendgrid_substitute(placeholder, subs)
  @sg_substitutions = Hash.new unless @sg_substitutions
  @sg_substitutions[placeholder] = subs
end