lib/guillotine/adapters/riak_adapter.rb
# Public: Removes the assigned short code.
#
# code - The String code to remove.
#
# Returns nothing.
Removes the assigned short code.
code - The String code to remove.

Returns nothing.
Removes the assigned short code . code - The String code to remove . Returns nothing .
def clear_code(code)
      if url_obj = url_object(code)
        @url_bucket.delete url_key(url_obj.data)
        @code_bucket.delete url_obj.key
      end
    end
def clear_code ( code ) if url_obj = url_object ( code ) @url_bucket . delete url_key ( url_obj . data ) @code_bucket . delete url_obj . key end end
Public: Removes the assigned short code.
Public : Removes the assigned short code .
code
<not_specific>