]> git.r.bdr.sh - rbdr/grita/blobdiff - grita.rb
Adds Variable domain to view too.
[rbdr/grita] / 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