effective_classifieds 0.4.5 → 0.4.7
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4efe669bad28e0c18b965b784e4b307a12e933d2d110deb660f73aae68f7dab0
|
4
|
+
data.tar.gz: daea6b6ae0e2285fde3b87fd1f723a03537465dcda8bed6c4fb2d018d50b2144
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 283e5708a1d92871e614b95eebaf25511de9b656f2e92716824620ebc92541416bc08fd43f5b1014e74f08df96b5d3c9eb05eb9b271264ae84f53352a88846c0
|
7
|
+
data.tar.gz: 606cad7e6b2294a8878618a6a35b31266a089cd2d68fe537e29d71152680c99ad184988e3aa50eda29660bd06d1e6b0379de5f322f695d5159f3585128a35b2a
|
@@ -63,7 +63,7 @@ module Effective
|
|
63
63
|
timestamps
|
64
64
|
end
|
65
65
|
|
66
|
-
scope :sorted, -> { order(:
|
66
|
+
scope :sorted, -> { order(end_on: :desc) }
|
67
67
|
scope :deep, -> { with_rich_text_body }
|
68
68
|
|
69
69
|
scope :upcoming, -> { where(arel_table[:end_on].gt(Time.zone.now)) }
|
@@ -87,7 +87,7 @@ module Effective
|
|
87
87
|
}
|
88
88
|
|
89
89
|
scope :classifieds, -> (user: nil, unpublished: false) {
|
90
|
-
scope = all.deep
|
90
|
+
scope = all.deep
|
91
91
|
|
92
92
|
if defined?(EffectiveRoles) && EffectiveClassifieds.use_effective_roles
|
93
93
|
scope = scope.for_role(user&.roles)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: effective_classifieds
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.7
|
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: 2022-11-
|
11
|
+
date: 2022-11-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|