Skip to content
Browse files

Raise exception if address is not set

  • Loading branch information...
1 parent 08144db commit c7db69fbeff8813a55e4d297b3b88ad664198e02 @gsterndale gsterndale committed Apr 27, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/stumble_score/location.rb
View
1 lib/stumble_score/location.rb
@@ -46,6 +46,7 @@ def bars
end
def geocode
+ raise "@address instance variable not set!" unless @address
escaped_address = URI.escape(@address)
uri = URI::HTTPS.build({
:host => "maps.googleapis.com",

0 comments on commit c7db69f

Please sign in to comment.
Something went wrong with that request. Please try again.