effective_pages 3.13.4 → 3.14.0
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/page.rb +2 -4
- data/lib/effective_pages/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b298a2a776d73e665de82d49c4e133889d8e66fdadbfc6f9f5d6154416e30355
|
4
|
+
data.tar.gz: fa2d1c53cfcca241cec70a90883fd1477c47b3c9419b5127642a928a4c4ae430
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 80f52d838930f83349068c634f933d3b2a5f97735f593c486d74402e6c645c73044b43262b6e0945c0923354d24aebb9f49cec567d7ef4a5fc34136e86e3199d
|
7
|
+
data.tar.gz: dad9c1ce3d6ddae0bab46c9e72715b0087af69bf00bdea20778365d7fc15657b1e8b53367c26729a1f1546ece975dbdf3e0dcc30f9af123a41e203b3978723a2
|
@@ -5,7 +5,7 @@ module Effective
|
|
5
5
|
if defined?(PgSearch)
|
6
6
|
include PgSearch::Model
|
7
7
|
|
8
|
-
multisearchable against: [:body]
|
8
|
+
multisearchable against: [:title, :body]
|
9
9
|
end
|
10
10
|
|
11
11
|
attr_accessor :current_user
|
@@ -99,9 +99,7 @@ module Effective
|
|
99
99
|
scope = all.deep.sorted
|
100
100
|
|
101
101
|
if defined?(EffectiveRoles) && EffectivePages.use_effective_roles
|
102
|
-
|
103
|
-
scope = scope.for_role(user.roles)
|
104
|
-
end
|
102
|
+
scope = scope.for_role(user&.roles)
|
105
103
|
end
|
106
104
|
|
107
105
|
unless unpublished
|
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: 3.
|
4
|
+
version: 3.14.0
|
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: 2024-
|
11
|
+
date: 2024-12-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|