lib/dblink/pg_bouncer_runner.rb in dblink-0.2 vs lib/dblink/pg_bouncer_runner.rb in dblink-0.3
- old
+ new
@@ -115,10 +115,10 @@
"postgres://#{pgb_user}:#{pgb_password}@dblink.tk:#{remote_port}/#{pg_db}"
end
private
def render_template(file, params)
- erb = ERB.new(File.read(file))
+ erb = ERB.new(File.read(BASE_DIR + '/' + file))
erb.filename = file
erb.result(binding)
end
end
\ No newline at end of file