decidim-core 0.6.3 → 0.6.4

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
  SHA1:
3
- metadata.gz: 5a7d0000ad1d10c51dad0ce1984d129067a12094
4
- data.tar.gz: 8211ed8f338526799238ad9cd77181d50cd0207e
3
+ metadata.gz: e779623f418954e17c49bbbe1aed14d42299398e
4
+ data.tar.gz: e8e12710f5181dc29d7b8fa72e665eb1ece8eb90
5
5
  SHA512:
6
- metadata.gz: 8d0b2bbd6810b6f6a3cd5e3bdb8fe55a29c661f1a40271300e0bc314b04a257893e5adc6444a1ea1a7833fcbc9b3ee6fb0e8f772c580a2bcb34122174b9d52d6
7
- data.tar.gz: 6c5674c10710dea09ae2ddfbfc431947fba95209fdb1257911ed4c632f33b8a4b77b3bedc65110b3c54edccff85ef3479fb8cb5b1f5120be59c24add4aaca13d
6
+ metadata.gz: 5be5179eeed80a0941a93b1fdb1c3e18c0a3f688d4876be4abf0fd7bbeb013b212cdbb784bce864ba40c34e829cdd090dd768f90a5442564a1cf4162d7b84228
7
+ data.tar.gz: bf4373a5f5e9be5ceb6ee9edb388293d515891de27ffd1aff0dc66097b418f76ab17dda44edd364c57935e90c6fc0a36b2ccadeb23ebe0f7060a233b0ea6d4ac
@@ -43,9 +43,15 @@ module Decidim
43
43
 
44
44
  conditions = []
45
45
  conditions << "decidim_scope_id IS NULL" if clean_scope_ids.delete("global")
46
- conditions.concat(["? = ANY(decidim_scopes.part_of)"] * clean_scope_ids.count) if clean_scope_ids.any?
47
46
 
48
- query.includes(:scope).references(:decidim_scopes).where(conditions.join(" OR "), *clean_scope_ids.map(&:to_i))
47
+ clean_scope_ids.map!(&:to_i)
48
+
49
+ if clean_scope_ids.any?
50
+ conditions.concat(["? = ANY(decidim_scopes.part_of)"] * clean_scope_ids.count)
51
+ conditions << "decidim_scopes.id IN (?)"
52
+ end
53
+
54
+ query.includes(:scope).references(:decidim_scopes).where(conditions.join(" OR "), *clean_scope_ids, clean_scope_ids)
49
55
  end
50
56
 
51
57
  private
@@ -3,7 +3,7 @@
3
3
  # This holds Decidim's version and the Rails version on which it depends.
4
4
  module Decidim
5
5
  def self.version
6
- "0.6.3"
6
+ "0.6.4"
7
7
  end
8
8
 
9
9
  def self.rails_version
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: decidim-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.3
4
+ version: 0.6.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josep Jaume Rey Peroy
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2017-09-20 00:00:00.000000000 Z
13
+ date: 2017-09-21 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rails
@@ -466,84 +466,84 @@ dependencies:
466
466
  requirements:
467
467
  - - '='
468
468
  - !ruby/object:Gem::Version
469
- version: 0.6.3
469
+ version: 0.6.4
470
470
  type: :runtime
471
471
  prerelease: false
472
472
  version_requirements: !ruby/object:Gem::Requirement
473
473
  requirements:
474
474
  - - '='
475
475
  - !ruby/object:Gem::Version
476
- version: 0.6.3
476
+ version: 0.6.4
477
477
  - !ruby/object:Gem::Dependency
478
478
  name: decidim-dev
479
479
  requirement: !ruby/object:Gem::Requirement
480
480
  requirements:
481
481
  - - '='
482
482
  - !ruby/object:Gem::Version
483
- version: 0.6.3
483
+ version: 0.6.4
484
484
  type: :development
485
485
  prerelease: false
486
486
  version_requirements: !ruby/object:Gem::Requirement
487
487
  requirements:
488
488
  - - '='
489
489
  - !ruby/object:Gem::Version
490
- version: 0.6.3
490
+ version: 0.6.4
491
491
  - !ruby/object:Gem::Dependency
492
492
  name: decidim-participatory_processes
493
493
  requirement: !ruby/object:Gem::Requirement
494
494
  requirements:
495
495
  - - '='
496
496
  - !ruby/object:Gem::Version
497
- version: 0.6.3
497
+ version: 0.6.4
498
498
  type: :development
499
499
  prerelease: false
500
500
  version_requirements: !ruby/object:Gem::Requirement
501
501
  requirements:
502
502
  - - '='
503
503
  - !ruby/object:Gem::Version
504
- version: 0.6.3
504
+ version: 0.6.4
505
505
  - !ruby/object:Gem::Dependency
506
506
  name: decidim-proposals
507
507
  requirement: !ruby/object:Gem::Requirement
508
508
  requirements:
509
509
  - - '='
510
510
  - !ruby/object:Gem::Version
511
- version: 0.6.3
511
+ version: 0.6.4
512
512
  type: :development
513
513
  prerelease: false
514
514
  version_requirements: !ruby/object:Gem::Requirement
515
515
  requirements:
516
516
  - - '='
517
517
  - !ruby/object:Gem::Version
518
- version: 0.6.3
518
+ version: 0.6.4
519
519
  - !ruby/object:Gem::Dependency
520
520
  name: decidim-meetings
521
521
  requirement: !ruby/object:Gem::Requirement
522
522
  requirements:
523
523
  - - '='
524
524
  - !ruby/object:Gem::Version
525
- version: 0.6.3
525
+ version: 0.6.4
526
526
  type: :development
527
527
  prerelease: false
528
528
  version_requirements: !ruby/object:Gem::Requirement
529
529
  requirements:
530
530
  - - '='
531
531
  - !ruby/object:Gem::Version
532
- version: 0.6.3
532
+ version: 0.6.4
533
533
  - !ruby/object:Gem::Dependency
534
534
  name: decidim-results
535
535
  requirement: !ruby/object:Gem::Requirement
536
536
  requirements:
537
537
  - - '='
538
538
  - !ruby/object:Gem::Version
539
- version: 0.6.3
539
+ version: 0.6.4
540
540
  type: :development
541
541
  prerelease: false
542
542
  version_requirements: !ruby/object:Gem::Requirement
543
543
  requirements:
544
544
  - - '='
545
545
  - !ruby/object:Gem::Version
546
- version: 0.6.3
546
+ version: 0.6.4
547
547
  description: Adds core features so other engines can hook into the framework.
548
548
  email:
549
549
  - josepjaume@gmail.com