silent-postgres/init.rb
2010-09-03 04:26:20 -07:00

5 lines
195 B
Ruby

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