Tweaks to make it actually work

This commit is contained in:
jgn 2010-09-22 14:05:32 -05:00
parent 33a15f0d5e
commit e0015391fb
2 changed files with 1 additions and 1 deletions

1
init.rb Normal file
View File

@ -0,0 +1 @@
require 'silent-postgres'

View File

@ -20,6 +20,5 @@ end
if %w(test development).include?(ENV["RAILS_ENV"]) if %w(test development).include?(ENV["RAILS_ENV"])
puts "Silencing Postgres" puts "Silencing Postgres"
require 'silent_postgres'
ActiveRecord::ConnectionAdapters::PostgreSQLAdapter.send(:include, SilentPostgres) ActiveRecord::ConnectionAdapters::PostgreSQLAdapter.send(:include, SilentPostgres)
end end