decidim-plans 0.18.1 → 0.18.2
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4bebdf0735c70f55e119ac006209684d24a6b97bb3de359eb68825fc6aff9e0a
|
4
|
+
data.tar.gz: d01cdbb08904454be82e745b192f6413a0f4f061f441168f58c7d6b1e5fc34fd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b2f6cccde0a14345e9856f78b768a920c676484257336aa91f6ca6d33e46fde90a3a7c6d8e7e70a0ceab9337570ca2e5c0f8317cacb15c4dee531372d1d8c5f7
|
7
|
+
data.tar.gz: 94816974bbccfd2b3c144bda91c33e71e9f0ddbd63cb6b4b35fc8e40b41bb4375a78f76bb75e0f4b61799a43115e2758e8a94407a8e2c03ec9d7ae9e3fe2f741
|
@@ -36,10 +36,9 @@ module Decidim
|
|
36
36
|
)
|
37
37
|
end
|
38
38
|
|
39
|
-
|
40
|
-
|
41
|
-
self.category_id = model.categorization.decidim_category_id
|
42
|
-
self.scope_id = model.decidim_scope_id
|
39
|
+
self.proposal_ids = model.linked_resources(:proposals, "included_proposals").pluck(:id)
|
40
|
+
self.scope_id = model.decidim_scope_id if model.scope
|
41
|
+
self.category_id = model.categorization.decidim_category_id if model.categorization
|
43
42
|
end
|
44
43
|
|
45
44
|
alias component current_component
|
@@ -57,10 +57,10 @@ module Decidim
|
|
57
57
|
)
|
58
58
|
end
|
59
59
|
|
60
|
+
self.proposal_ids = model.linked_resources(:proposals, "included_proposals").pluck(:id)
|
60
61
|
self.user_group_id = model.user_groups.first&.id
|
61
|
-
|
62
|
-
|
63
|
-
self.category_id = model.categorization.decidim_category_id
|
62
|
+
self.scope_id = model.decidim_scope_id if model.scope
|
63
|
+
self.category_id = model.categorization.decidim_category_id if model.categorization
|
64
64
|
end
|
65
65
|
|
66
66
|
def user_group
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: decidim-plans
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.18.
|
4
|
+
version: 0.18.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Antti Hukkanen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-12-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: decidim-core
|