Permalink
Browse files

Merge pull request #1 from dwradcliffe/fix-rails-2x

Fails to load on Rails 2.x
  • Loading branch information...
2 parents 5769fc8 + fa140d0 commit 5d0890e59de4510b1ca4aece86d1159f757af4b7 @bkeepers committed Aug 8, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/dotenv.rb
View
@@ -6,4 +6,4 @@ def self.load(filename = '.env')
end
end
-require 'dotenv/railtie' if defined?(Rails)
+require 'dotenv/railtie' if defined?(Rails) and defined?(Rails::Railtie)

0 comments on commit 5d0890e

Please sign in to comment.