]> git.r.bdr.sh - rbdr/grita/commitdiff
Adds variable domain name.
authorBen Beltran <redacted>
Sat, 29 Oct 2011 03:13:29 +0000 (22:13 -0500)
committerBen Beltran <redacted>
Sat, 29 Oct 2011 03:13:29 +0000 (22:13 -0500)
grita.rb

index 6e4d3671de132de7ffddcef7f6ace1d62af69fe3..76f1c93c4c86ce1e24619432532e7dd3797ee9a1 100644 (file)
--- 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