Permalink
Browse files

fix spelling of the method name and check for valid options properly.

  • Loading branch information...
1 parent 86f30aa commit 87d532bff3ab83ac5e842177a7b1fdaae39681b0 @peregrinator peregrinator committed Apr 20, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/sendgrid.rb
View
@@ -141,9 +141,9 @@ def sendgrid_spamcheck_maxscore(score)
# Call within mailer method to set custom google analytics options
# http://sendgrid.com/documentation/appsGoogleAnalytics
- def sengrid_ganalytics_options(options)
+ def sendgrid_ganalytics_options(options)
@ganalytics_options = []
- options.each { |option| @ganalytics_options << option if VALID_GANALYTICS_OPTIONS.include?(option) }
+ options.each { |option| @ganalytics_options << option if VALID_GANALYTICS_OPTIONS.include?(option[0].to_sym) }
end
# Sets the custom X-SMTPAPI header after creating the email but before delivery

0 comments on commit 87d532b

Please sign in to comment.