lib/tmin/server.rb in tmin-0.0.5 vs lib/tmin/server.rb in tmin-0.0.6
- old
+ new
@@ -272,9 +272,10 @@
if @url.nil?
status 404
"Sorry, that code is unknown."
else
@short_url = "http://#{config[:hostname]}/#{@url.code}"
+ @url.register_click!
haml :redirect
end
end
def initialize config = {}, &blk