From e0015391fb45f7c8929d478f3fdb148e8e537c76 Mon Sep 17 00:00:00 2001 From: jgn Date: Wed, 22 Sep 2010 14:05:32 -0500 Subject: [PATCH] Tweaks to make it actually work --- init.rb | 1 + lib/silent-postgres.rb | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) create mode 100644 init.rb diff --git a/init.rb b/init.rb new file mode 100644 index 0000000..d127c5c --- /dev/null +++ b/init.rb @@ -0,0 +1 @@ +require 'silent-postgres' diff --git a/lib/silent-postgres.rb b/lib/silent-postgres.rb index 18b7722..3825edb 100644 --- a/lib/silent-postgres.rb +++ b/lib/silent-postgres.rb @@ -20,6 +20,5 @@ end if %w(test development).include?(ENV["RAILS_ENV"]) puts "Silencing Postgres" - require 'silent_postgres' ActiveRecord::ConnectionAdapters::PostgreSQLAdapter.send(:include, SilentPostgres) end