diff options
| author | Ben Beltran <ben@nsovocal.com> | 2011-10-28 22:13:29 -0500 |
|---|---|---|
| committer | Ben Beltran <ben@nsovocal.com> | 2011-10-28 22:13:29 -0500 |
| commit | c194753dd738f88ce42442dc1510ac29980893e7 (patch) | |
| tree | 8d61a3735780d18a6711e13a26f48ef91200a457 | |
| parent | 5e4e016a702744c0be34a995855e6a975999a353 (diff) | |
Adds variable domain name.
| -rw-r--r-- | grita.rb | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |