pulitzer 0.15.6 → 0.15.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/pulitzer/post_types_controller.rb +5 -1
- data/lib/pulitzer/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e2431c03fd45ceed16e863d54120c661552ba07f
|
4
|
+
data.tar.gz: e0e184834648aefc1ea5541aeb02d0c647d6395c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 39c9772632001602ce318181c77ed0d3c80d7acdfe6e49d357e32d3c1379898ec8df523373818edf776106a717dfc3768f255c404add72015bb563acfb4516d0
|
7
|
+
data.tar.gz: 707d835138148f833b53a3bd209950bdaf4f33117667f380dcb5c497a7316b0f58041df0ce730fe82b007a0dd2ee0fde68f5e0843d5ac8f6ef09180f158eb1a7
|
@@ -8,7 +8,11 @@ class Pulitzer::PostTypesController < Pulitzer::ApplicationController
|
|
8
8
|
@post_type_kind = 'template'
|
9
9
|
end
|
10
10
|
if request.xhr?
|
11
|
-
|
11
|
+
if Pulitzer.skip_metadata_auth? || self.instance_eval(&Pulitzer.metadata_closure)
|
12
|
+
@post_types = Pulitzer::PostType.send(@post_type_kind).order(name: :asc)
|
13
|
+
else
|
14
|
+
@post_types = Pulitzer::PostType.send(@post_type_kind).joins(:post_type_versions).where(pulitzer_post_type_versions: {status: 'published'}).distinct.order(name: :asc)
|
15
|
+
end
|
12
16
|
render_ajax
|
13
17
|
end
|
14
18
|
end
|
data/lib/pulitzer/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pulitzer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.15.
|
4
|
+
version: 0.15.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eric Draut
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2017-06-
|
12
|
+
date: 2017-06-21 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|