Module: SpatialFeatures::FeaturesAssociationExtensions
- Defined in:
- lib/spatial_features/has_spatial_features.rb
Instance Method Summary collapse
Instance Method Details
#area(options = {}) ⇒ Object
237 238 239 240 241 242 243 |
# File 'lib/spatial_features/has_spatial_features.rb', line 237 def area( = {}) if [:cache] == false || !proxy_association.owner.class.has_features_area? pluck('ST_Area(ST_UNION(geom))').first.to_f else proxy_association.owner.features_area end end |