Make autoloadable by Rails 3
This commit is contained in:
parent
81002e1ad3
commit
c2c10eeca2
@ -17,3 +17,9 @@ module SilentPostgres
|
|||||||
METHOD
|
METHOD
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if %w(test development).include?(ENV["RAILS_ENV"])
|
||||||
|
puts "Silencing Postgres"
|
||||||
|
require 'silent_postgres'
|
||||||
|
ActiveRecord::ConnectionAdapters::PostgreSQLAdapter.send(:include, SilentPostgres)
|
||||||
|
end
|
Loading…
Reference in New Issue
Block a user