effective_posts 2.6.1 → 2.6.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/effective/post.rb +1 -1
- data/lib/effective_posts/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ba2b29680fd67771e07107f6fc283581b317593e18bec35916ca2e99ff7f7a21
|
4
|
+
data.tar.gz: 395b803b93e46491d74e9965702e2f50b019ce36410e57f5e0472ac5ed9524ca
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a0908054fb05b30f5e45f4f0bfc9b58597c59dd2f3b9eddee0cac8a51fcfc2ef4a81bf83c1af487d228c648acca09734db53a5b3bde4a40b1fac943f9a7075de
|
7
|
+
data.tar.gz: 21e8a107beba7055c689209ad068f9dfef739e8581eaf3be2b71c21cf252b42dfdf7d3f3fb63ae13661c0b69805718fe4fc1094158ff1a8f9e8f0766c43272cb
|
@@ -85,7 +85,7 @@ module Effective
|
|
85
85
|
}
|
86
86
|
|
87
87
|
scope :posts, -> (user: nil, category: nil, unpublished: false, archived: false) {
|
88
|
-
scope = all.deep.order(
|
88
|
+
scope = all.deep.order(arel_table[:published_start_at].desc.nulls_last)
|
89
89
|
|
90
90
|
if defined?(EffectiveRoles) && EffectivePosts.use_effective_roles
|
91
91
|
if user.present? && user.respond_to?(:roles)
|