small medium large xlarge

Generic-user-small
23 Apr 2009, 03:54
kdream95 (2 posts)
`
  def shorten(url)
    return @urls[hash] if @urls.has_key?(hash)
    hash = hash_for(url)
    store_hash(Url.build(url, hash), hash)
  end
`

if @urls.has_key?(hash) # ===> hash ???
You must be logged in to comment