Sha256: 3c9ee5bed80480dd82f9af0a0185bec2e688a0861693dc3ce980c802dcdf0eca
Contents?: true
Size: 431 Bytes
Versions: 2
Compression:
Stored size: 431 Bytes
Contents
class SpatialCache < ActiveRecord::Base belongs_to :spatial_model, :polymorphic => true, :inverse_of => :spatial_caches def self.between(spatial_model, klass) where(SpatialFeatures::Utils.polymorphic_condition(spatial_model, 'spatial_model')) .where(:intersection_model_type => klass.to_s) end def stale? spatial_model.has_spatial_features_hash? && self.features_hash != spatial_model.features_hash end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
spatial_features-2.7.4 | app/models/spatial_cache.rb |
spatial_features-2.7.2 | app/models/spatial_cache.rb |