app/models/place.rb
def append_geom(geom, other_attrs = {})
    new_geom = geom
    self.place_geometry.reload
    if self.place_geometry
      new_geom = MultiPolygon.from_geometries(
        self.place_geometry.geom.geometries + geom.geometries)
    end
    self.save_geom(new_geom, other_attrs)
  end
# Appends a geom instead of replacing it
Appends a geom instead of replacing it
Appends a geom instead of replacing it
def append_geom(geom, other_attrs = {})
    new_geom = geom
    self.place_geometry.reload
    if self.place_geometry
      new_geom = MultiPolygon.from_geometries(
        self.place_geometry.geom.geometries + geom.geometries)
    end
    self.save_geom(new_geom, other_attrs)
  end
def append_geom ( geom , other_attrs = { } ) new_geom = geom self . place_geometry . reload if self . place_geometry new_geom = MultiPolygon . from_geometries ( self . place_geometry . geom . geometries + geom . geometries ) end self . save_geom ( new_geom , other_attrs ) end
Appends a geom instead of replacing it
Appends a geom instead of replacing it
geom
other_attrs