spatial_features 1.2.7 → 1.2.8
Sign up to get free protection for your applications and to get access to all the features.
@@ -1,20 +1,22 @@
|
|
1
1
|
module SpatialExtensions
|
2
2
|
private
|
3
3
|
|
4
|
-
def abstract_refresh_geometry_action(
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
4
|
+
def abstract_refresh_geometry_action(models, cache_classes)
|
5
|
+
Array.wrap(models).each do |model|
|
6
|
+
queue = "#{model.class}/#{model.id}/update_features"
|
7
|
+
|
8
|
+
# Destroy old failed jobs
|
9
|
+
Delayed::Job.where(:queue => queue).where.not(:failed_at => nil).destroy_all
|
10
|
+
|
11
|
+
Delayed::Job.enqueue(
|
12
|
+
ArcGISUpdateFeaturesJob.new(
|
13
|
+
:spatial_model_type => model.class,
|
14
|
+
:spatial_model_id => model.id,
|
15
|
+
:cache_classes => cache_classes
|
16
|
+
),
|
17
|
+
:queue => queue
|
18
|
+
)
|
19
|
+
end
|
18
20
|
|
19
21
|
redirect_to :back
|
20
22
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spatial_features
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.8
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2015-05-
|
13
|
+
date: 2015-05-07 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rails
|