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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: aaf7679098b16b2853e689c0d78cacf05510f8288c586707434dea3c11b431a5
4
- data.tar.gz: 1f8c557e1b97598672a56fb49a80ea8c0164382f2e3bc8716ad158359fdcfe38
3
+ metadata.gz: ba2b29680fd67771e07107f6fc283581b317593e18bec35916ca2e99ff7f7a21
4
+ data.tar.gz: 395b803b93e46491d74e9965702e2f50b019ce36410e57f5e0472ac5ed9524ca
5
5
  SHA512:
6
- metadata.gz: af3804cb3d8b710c4589575401a41647dad5ab90204dc64f04a874f983e230763643ba4f97c455d40aabe63361bc1f7c17da007ae1397dd4b8d8d85b46cc5b46
7
- data.tar.gz: f072f4473950ffc7c1dc58ae33c94e1cd5cb1b9cd5b8f722d3775a562dd914e393a9a359511bb58821408db076040418d9ddccd5a17248533bd3e6c201595f95
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(Arel.sql("published_start_at DESC NULLS LAST"))
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)
@@ -1,3 +1,3 @@
1
1
  module EffectivePosts
2
- VERSION = '2.6.1'.freeze
2
+ VERSION = '2.6.2'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_posts
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.6.1
4
+ version: 2.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect