Skip to content

Commit

Permalink
fix spelling of the method name and check for valid options properly.
Browse files Browse the repository at this point in the history
  • Loading branch information
peregrinator committed Apr 20, 2011
1 parent 86f30aa commit 87d532b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/sendgrid.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 87d532b

Please sign in to comment.