spatial_features 2.3.0 → 2.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4c680fd535f7a9774f215d2d98183b0f3738d3f5
|
4
|
+
data.tar.gz: 26ce1595016848e915b4acf734a59bbe7b663263
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 727c003d4531cd14a6bd3a146baa095471d4d343335fefa16086714d512c8a9fc8cda46dda25bb5964b037e32e8daa0cd46fe48acebde71db82b1a4c4ee14d91
|
7
|
+
data.tar.gz: 13a9bfe5018579fa1e42aac6ada8272b81d867090206f422d0884b71cf93ffb8f0ce948c6b421a8e363cf8193097c0affb42bde10b6220f53ffabd6938870893
|
data/app/models/feature.rb
CHANGED
@@ -51,7 +51,7 @@ module SpatialFeatures
|
|
51
51
|
end
|
52
52
|
|
53
53
|
def update_features_area
|
54
|
-
return unless
|
54
|
+
return unless has_attribute?(:features_area)
|
55
55
|
self.features_area = features.area(:cache => false)
|
56
56
|
update_column :features_area, features_area unless new_record?
|
57
57
|
end
|