Class: UpdateFeaturesJob
- Inherits:
-
Struct
- Object
- Struct
- UpdateFeaturesJob
- Defined in:
- lib/spatial_features/workers/update_features_job.rb
Instance Attribute Summary collapse
-
#options ⇒ Object
Returns the value of attribute options.
Instance Method Summary collapse
Instance Attribute Details
#options ⇒ Object
Returns the value of attribute options
1 2 3 |
# File 'lib/spatial_features/workers/update_features_job.rb', line 1 def end |
Instance Method Details
#perform ⇒ Object
2 3 4 5 6 7 8 9 10 11 |
# File 'lib/spatial_features/workers/update_features_job.rb', line 2 def perform model = [:spatial_model_type].find([:spatial_model_id]) if model.update_features! Array([:cache_classes]).each {|klass| SpatialFeatures.cache_record_proximity(model, klass) } after_feature_update(model) end rescue => e raise "Can't refresh geometry: #{normalize_message(e.message)}" end |