app/models/feature.rb in spatial_features-2.9.2 vs app/models/feature.rb in spatial_features-2.9.3
- old
+ new
@@ -45,10 +45,10 @@
def automatically_refresh_aggregate?
# Check if there is a spatial model id because nothing prevents is from creating a Feature without one. Depending on
# how you assign a feature to a record, you may end up saving it before assigning it to a record, thereby leaving
# this field blank.
- spatial_model_id? && automatically_refresh_aggregate
+ spatial_model_id? && automatically_refresh_aggregate && saved_change_to_geog?
end
# Features are used for display so we also cache their KML representation
def self.cache_derivatives(options = {})
super