Method: SendGrid::ClassMethods#sendgrid_category
- Defined in:
- lib/sendgrid.rb
#sendgrid_category(category) ⇒ Object
Sets a default category for all emails. :use_subject_lines has special behavior that uses the subject-line of each outgoing email for the SendGrid category. This special behavior can still be overridden by calling sendgrid_category from within a mailer method.
51 52 53 |
# File 'lib/sendgrid.rb', line 51 def sendgrid_category(category) self.default_sg_category = category end |