Pr0d1r2-geokit 1.3.2.4 → 1.3.2.5
Sign up to get free protection for your applications and to get access to all the features.
data/lib/geokit/cached/model.rb
CHANGED
@@ -25,7 +25,7 @@ module Geokit
|
|
25
25
|
|
26
26
|
def fake_geoloc
|
27
27
|
geoloc = Geokit::GeoLoc.new
|
28
|
-
geoloc.lat, geoloc.lng, geoloc.provider, geoloc.success = lat, lng, provider,
|
28
|
+
geoloc.lat, geoloc.lng, geoloc.provider, geoloc.success = lat, lng, provider, success?
|
29
29
|
geoloc
|
30
30
|
end
|
31
31
|
|
@@ -53,6 +53,10 @@ module Geokit
|
|
53
53
|
!@geo.nil?
|
54
54
|
end
|
55
55
|
|
56
|
+
def success?
|
57
|
+
!!(lat and lng)
|
58
|
+
end
|
59
|
+
|
56
60
|
end
|
57
61
|
end
|
58
62
|
end
|
data/lib/geokit.rb
CHANGED