decidim-process_groups_content_block 0.14.3 → 0.14.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ba8fdb4946cc131ba635d2a1c4c9b53d53007f87
|
|
4
|
+
data.tar.gz: 919e72599be3456eceb49a509bf83e1752a95ccd
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b278ec5797c3be3e873615c78ff2595e594fd6f4801dac60a20729d94d797d2438f190b452fa0c5e81a5655bb1f9382dc8efbc5739bb000072f48f6ca9cc20a7
|
|
7
|
+
data.tar.gz: 9e9574c37f268ab3badd332bbd37a6991220586ed5f71f130672ea3d437c3682bfc678792dc9ddb088a789c1a928ad853b96b82a8aa220aafd488e13aa8e8c94
|
data/README.md
CHANGED
|
@@ -41,6 +41,12 @@ $ DATABASE_USERNAME=<username> DATABASE_PASSWORD=<password> bundle exec rspec
|
|
|
41
41
|
Note that the database user has to have rights to create and drop a database in
|
|
42
42
|
order to create the dummy test app database.
|
|
43
43
|
|
|
44
|
+
In case you are using [rbenv](https://github.com/rbenv/rbenv) and have the
|
|
45
|
+
[rbenv-vars](https://github.com/rbenv/rbenv-vars) plugin installed for it, you
|
|
46
|
+
can add these environment variables to the root directory of the project in a
|
|
47
|
+
file named `.rbenv-vars`. In this case, you can omit defining these in the
|
|
48
|
+
commands shown above.
|
|
49
|
+
|
|
44
50
|
## License
|
|
45
51
|
|
|
46
52
|
See [LICENSE-AGPLv3.txt](LICENSE-AGPLv3.txt).
|
|
@@ -18,7 +18,11 @@ module Decidim
|
|
|
18
18
|
def highlighted_groups
|
|
19
19
|
Decidim::ParticipatoryProcesses::OrganizationPrioritizedParticipatoryProcessGroups.new(
|
|
20
20
|
current_organization
|
|
21
|
-
)
|
|
21
|
+
).query
|
|
22
|
+
.joins(:participatory_processes)
|
|
23
|
+
.where.not(decidim_participatory_processes: { published_at: nil })
|
|
24
|
+
.group('decidim_participatory_process_groups.id')
|
|
25
|
+
.having('COUNT(decidim_participatory_processes.id) > 0')
|
|
22
26
|
end
|
|
23
27
|
|
|
24
28
|
def i18n_scope
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: decidim-process_groups_content_block
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.14.
|
|
4
|
+
version: 0.14.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Antti Hukkanen
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-
|
|
11
|
+
date: 2018-11-07 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: decidim-core
|