Even more Rails 3 compatibility

This commit is contained in:
Evgeniy Dolzhenko 2010-11-05 05:14:51 +00:00
parent d1713679a6
commit a9bf2ee42f

View File

@ -1,4 +1,4 @@
if %w(test development).include?(ENV["RAILS_ENV"]) if %w(test development).include?(Rails.respond_to?(:env) ? Rails.env : ENV["RAILS_ENV"])
require "silent-postgres/railtie" require "silent-postgres/railtie"