Module: SpatialFeatures::FeaturesAssociationExtensions
- Defined in:
- lib/spatial_features/has_spatial_features.rb
Instance Method Summary collapse
Instance Method Details
#area(options = {}) ⇒ Object
221 222 223 224 225 226 227 |
# File 'lib/spatial_features/has_spatial_features.rb', line 221 def area( = {}) if [:cache] == false || !proxy_association.owner.class.has_features_area? area_in_square_meters else (proxy_association.owner.features_area || area_in_square_meters).to_f end end |