effective_pages 3.10.1 → 3.10.3
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: 65cee10f754283599ad7b184e91bc8c86be7b9fb9105c8ac73eea21dffb715d2
|
4
|
+
data.tar.gz: aa5392fe1adef1c6938400e10be3c337bacfa418c6d3708a5119c0b1ef4d07f8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4a3ddad10e69703c863560f5db63815fdcaa9a3f16662e9c7e0890d99c57a33290df385987d7b4f5d219b5e05d3ef4a881787de608405325c5c28c5935260733
|
7
|
+
data.tar.gz: 5175e36de922d314b6010911b88a2102685b8b42105058ed0e3eaf5041bca8aaeb3d7d8d9740b2620ea6579593ce21b10114c78912ef6a44e6cfff5fc43d8ece
|
@@ -1,4 +1,4 @@
|
|
1
|
-
= cache(
|
1
|
+
= cache(EffectiveResources.cache_key(carousel, Effective::CarouselItem.all.cache_key_with_version)) do
|
2
2
|
- carousel_items = Effective::CarouselItem.sorted.deep.where(carousel: carousel).to_a
|
3
3
|
- uid = "effective-carousel-#{carousel}-#{Time.zone.now.to_i}"
|
4
4
|
|
@@ -1,7 +1,7 @@
|
|
1
1
|
- raise('expected a menu') unless menu.present?
|
2
2
|
- menu = menu.to_s
|
3
3
|
|
4
|
-
= cache(
|
4
|
+
= cache(EffectiveResources.cache_key(menu, current_user, Effective::Page.all.cache_key_with_version)) do
|
5
5
|
- # Renders menu_root? level pages and their immediate children
|
6
6
|
- Effective::Page.for_menu_root(menu).each do |page|
|
7
7
|
- next unless EffectiveResources.authorized?(self, :show, page)
|
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.10.
|
4
|
+
version: 3.10.3
|
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-05-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|