From c194753dd738f88ce42442dc1510ac29980893e7 Mon Sep 17 00:00:00 2001 From: Ben Beltran Date: Fri, 28 Oct 2011 22:13:29 -0500 Subject: Adds variable domain name. --- grita.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/grita.rb b/grita.rb index 6e4d367..76f1c93 100644 --- a/grita.rb +++ b/grita.rb @@ -28,7 +28,7 @@ get '/qr/:grito.png' do rpr_filepath = tmpfile.path + '.png' RQR::QRCode.create do |qr| - qr.save('http://grita.heroku.com/'+params[:grito], rpr_filepath) + qr.save('http://#{request.host}/'+params[:grito], rpr_filepath) end buffer = File.open(rpr_filepath).read -- cgit