effective_pages 3.4.2 → 3.4.4
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: b7e7436b43a4cfa2c411726504dfebd9b9d2f57882c81a34b96050c05180a5db
|
4
|
+
data.tar.gz: d8100f839281181a472c7d4b57057d938b3b47e6a02b7a57c4898d14e7c38432
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 92141f94e61b16c58698757af7c46a57bba7578f66b166e32fb04d5b7b13e7f48ee71eaca57456cc1f56827f472283b15ea545e9dce37135e4d15452410e8c7c
|
7
|
+
data.tar.gz: d90538fe6536064184493453a7dd1c4e5bf0d60d076d82314baa31d9f3b0350f7bee30bce1cd04d7b4bc228936ce33a82d91b1e88998b74f45af9efe7be2766e
|
@@ -77,7 +77,7 @@ module EffectiveMenusHelper
|
|
77
77
|
[arrow, group, title].compact.join(' ').html_safe
|
78
78
|
end
|
79
79
|
|
80
|
-
[child.to_s, child.
|
80
|
+
[child.to_s, child.id, { 'data-html': label }, child.menu_name]
|
81
81
|
end
|
82
82
|
end.flatten(1).group_by(&:last)
|
83
83
|
end
|
@@ -12,7 +12,7 @@ module EffectivePageBannersHelper
|
|
12
12
|
page_banner ||= page.page_banner if page.banner? && page.page_banner.present?
|
13
13
|
page_banner ||= Effective::PageBanner.random.first if page.banner? && page.banner_random?
|
14
14
|
|
15
|
-
|
15
|
+
return if page_banner.blank?
|
16
16
|
|
17
17
|
if block_given?
|
18
18
|
yield(page_banner); nil
|
@@ -12,7 +12,7 @@ module EffectivePageSectionsHelper
|
|
12
12
|
name = name.to_s
|
13
13
|
|
14
14
|
page_section = effective_page_sections.find { |ps| ps.name == name }
|
15
|
-
|
15
|
+
return if page_section.blank?
|
16
16
|
|
17
17
|
if block_given?
|
18
18
|
yield(page_section); nil
|
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.
|
4
|
+
version: 3.4.4
|
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-10-
|
11
|
+
date: 2022-10-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|