Permalink
Browse files

using defined? instead of const_defined?

  • Loading branch information...
Brad Cantin
Brad Cantin committed Sep 6, 2011
1 parent f928f7b commit de40bd0ae7ba4174a24715b2dc9704937a65b0d5
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/sendgrid.rb
View
@@ -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.

0 comments on commit de40bd0

Please sign in to comment.