Skip to content
Snippets Groups Projects
Commit 0c7267b8 authored by Alex Reisner's avatar Alex Reisner
Browse files

Move actual key expiration to separate method.

parent 629024f6
No related branches found
No related tags found
No related merge requests found
...@@ -28,7 +28,7 @@ module Geocoder ...@@ -28,7 +28,7 @@ module Geocoder
if url == :all if url == :all
urls.each{ |u| expire(u) } urls.each{ |u| expire(u) }
else else
self[url] = nil expire_single_url(url)
end end
end end
...@@ -66,5 +66,9 @@ module Geocoder ...@@ -66,5 +66,9 @@ module Geocoder
def interpret(value) def interpret(value)
value == "" ? nil : value value == "" ? nil : value
end end
def expire_single_url(url)
self[url] = nil
end
end end
end end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment