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