Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

using defined? instead of const_defined?

  • Loading branch information...
commit de40bd0ae7ba4174a24715b2dc9704937a65b0d5 1 parent f928f7b
Brad Cantin authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/sendgrid.rb
View
2  lib/sendgrid.rb
@@ -134,7 +134,7 @@ def sendgrid_unique_args(args)
end
# only override the appropriet methods for the current rails version
- if const_defined?('Rails') && Rails.version < '3.0.0'
+ if defined?(Rails) && Rails.version < '3.0.0'
# Sets the custom X-SMTPAPI header after creating the email but before delivery
# NOTE: This override is used for Rails 2 ActionMailer classes.
Please sign in to comment.
Something went wrong with that request. Please try again.