lib/ecoportal/api/v2/page/component/geo_field.rb in ecoportal-api-v2-0.9.3 vs lib/ecoportal/api/v2/page/component/geo_field.rb in ecoportal-api-v2-0.9.4
- old
+ new
@@ -5,9 +5,13 @@
class Component
class GeoField < Page::Component
passthrough :address
embeds_one :coordinates, klass: "Ecoportal::API::V2::Page::Component::GeoCoordinates"
+ def empty?
+ coordinates.empty?
+ end
+
def to_s
coordinates.to_s
end
end
end