app/models/feature.rb in spatial_features-2.20.0 vs app/models/feature.rb in spatial_features-3.0.0

- old
+ new

@@ -15,19 +15,9 @@ after_save :refresh_aggregate, if: :automatically_refresh_aggregate? attr_accessor :importable_image_paths # :nodoc: - # Features are used for display so we also cache their KML representation - def self.cache_derivatives(options = {}) - super - update_all <<-SQL.squish - kml = ST_AsKML(geog, 6), - kml_lowres = ST_AsKML(geom_lowres, #{options.fetch(:lowres_precision, lowres_precision)}), - kml_centroid = ST_AsKML(centroid) - SQL - end - def self.defer_aggregate_refresh(&block) start_at = Feature.maximum(:id).to_i + 1 output = without_aggregate_refresh(&block) where(:id => start_at..Float::INFINITY).refresh_aggregates