effective_polls 0.6.2 → 0.6.3

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: ef6b14276ec4d44a44936aff57b9cc1f933a08f88406551d6424ded7f70ff37f
4
- data.tar.gz: d1b6619c056f9d702eab75a3f17fa6227edd8c3386864653d5fc9ce19e7edfa2
3
+ metadata.gz: 1a20ad391dc3c9332c540ddf58f76004950099c17f9305af1919c7f541251019
4
+ data.tar.gz: b6c5b6688300174b7f836b5572707006cc08b81e6c50bf131ca6127fedb48342
5
5
  SHA512:
6
- metadata.gz: deada936517080769fc4c1ccfd8f7d91359116c3ce2ee92c3d195fb6d4aabe681cf292a960c24b46efd2d96c8bc220113ae2a88e18aa44677eacb86eb31c9add
7
- data.tar.gz: a95e7c178730c0ee8f495a51ecc68c8d62d3d76669debc0e0f19c0c3ba21144e771da3a74e616cac3b71051c9bfbba9fd657fe3fb08fc3979219a3aa506a8d8a
6
+ metadata.gz: 2b624b1d4005ea65626a2d82fe33bff3640f4696670a8575f7c3aced34506e0b8fb21c8cfd201ffcdd5e72d1da4b7d2a50cbc5d0ee7f802fe0b3089e1fa24feb
7
+ data.tar.gz: 7b1b714ceafa0e11c52ded569ac091ca32b045a5d9fd2f5f6c1bd7915d6ba8baf3532f400a2588b040eb8ceb28470158c1a886198eb5851bc1e120da6ef1f2ae
@@ -21,7 +21,12 @@
21
21
  - f.object.audience_class_name ||= current_user.class.name
22
22
 
23
23
  = f.hidden_field :audience_class_name
24
- = f.radios :audience, Effective::Poll::AUDIENCES
24
+
25
+ - # We don't want any future polls to include 'All Users'
26
+ - if f.object.audience == 'All Users'
27
+ = f.radios :audience, Effective::Poll::AUDIENCES
28
+ - else
29
+ = f.radios :audience, (Effective::Poll::AUDIENCES - ['All Users'])
25
30
 
26
31
  = f.show_if :audience, 'All Users' do
27
32
  .card
@@ -1,3 +1,3 @@
1
1
  module EffectivePolls
2
- VERSION = '0.6.2'
2
+ VERSION = '0.6.3'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_polls
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.2
4
+ version: 0.6.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-02-22 00:00:00.000000000 Z
11
+ date: 2024-05-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails