effective_pages 2.0.2 → 2.0.3

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: fdc3d90510d3e7f24698870169dea7d15a2860ed
4
- data.tar.gz: 374484d7237ab1dba337f02702db6f9164a1f4bc
3
+ metadata.gz: 1313a671f8759b405908b4f96fd751cf574cb45b
4
+ data.tar.gz: 5f1c2fbf5474523ab5aefd8d539fa0ce73bd1c62
5
5
  SHA512:
6
- metadata.gz: e5f47e1f8e314a26935c3ac1cd038fd11e879dd9f556440c7bec032c4b6587791f4ee105586e8f6dc6463fed38f9e717daa9f79399c3267d78715ea26afd65c1
7
- data.tar.gz: 535476f8e040412731310432f35e2de38a8385bacf1f032c0cca4298978fa394e12a5796a1019596bcd7d4b7970e1ad6aab8a856500ada3cc4c738ec6e1f88cd
6
+ metadata.gz: 0a6285b1193fa4ff849cdc4854fe40294408afdc51302b729321e10f3710cf522f2e35397cd3f272d42030196d54546840af5e7eb4a5f9dab23a821d169bce2e
7
+ data.tar.gz: 391184f49850291e497bc1871e3a2db9edcbf3f442ffcc8829ed6e22b34157b1dd8dd7501598ed054186275f9373bbe4c5fd099b36d49b28a25bf12a200d6e1c
@@ -22,7 +22,7 @@
22
22
  = f.check_box :draft, label: 'Save this page as a draft. It will not be accessible on the website.'
23
23
 
24
24
  - if defined?(EffectiveRoles) and f.object.respond_to?(:roles) && EffectivePages.use_effective_roles
25
- = f.checks :roles, EffectiveRoles.roles_collection(f.object), hint: '* leave blank for a regular public page that anyone can view'
25
+ = render partial: '/admin/pages/roles', locals: { page: page, form: f, f: f }
26
26
 
27
27
  = f.submit do
28
28
  = f.save 'Save'
@@ -0,0 +1 @@
1
+ = f.checks :roles, EffectiveRoles.roles_collection(f.object), hint: '* leave blank for a regular public page that anyone can view'
@@ -1,3 +1,3 @@
1
1
  module EffectivePages
2
- VERSION = '2.0.2'.freeze
2
+ VERSION = '2.0.3'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_pages
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.2
4
+ version: 2.0.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: 2019-04-26 00:00:00.000000000 Z
11
+ date: 2019-05-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -115,6 +115,7 @@ files:
115
115
  - app/views/admin/pages/_actions.html.haml
116
116
  - app/views/admin/pages/_additional_fields.html.haml
117
117
  - app/views/admin/pages/_form.html.haml
118
+ - app/views/admin/pages/_roles.html.haml
118
119
  - app/views/admin/pages/edit.html.haml
119
120
  - app/views/admin/pages/index.html.haml
120
121
  - app/views/admin/pages/new.html.haml