Permalink
Browse files

Only checking for the specific RAILS version if we are using RAILS

  • Loading branch information...
Brad Cantin
Brad Cantin committed Aug 26, 2011
1 parent 4331623 commit f928f7b383c98bd1f575bc531fc81e69d4ed3448
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 Rails.version < '3.0.0'
+ if const_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 f928f7b

Please sign in to comment.