Permalink
Browse files

added rails 2.x compatibility fix

  • Loading branch information...
1 parent 5769fc8 commit fa140d098dffaaa6899ce431d80b8c843624e5f5 David Radcliffe 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 fa140d0

Please sign in to comment.