effective_pages 3.4.2 → 3.4.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: f5f3b0de9a5ca3fe12873d09d559072e5f29eab0857753c9fa7a16d91a4bdeea
|
4
|
+
data.tar.gz: dd73a0fedf8b38bc4f26b08dbad06b0e47a6cc7f073fc56e2574a31d074a374f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 564e7333cc97ad0810faa5ef6ceeda0ab36d83f80ad79856a89191e47a223d52d5be0068f0dc85705b1be27c8e6d54f3e3c409f6c6f4cd9b06756a32bdc688a0
|
7
|
+
data.tar.gz: 8c87830c81761b1449c4ff8e611d569edb12264d5caae05a213aa0c306638b8491d9f126f339dba6c96b0893976f89a297e1210a3d580e85bfc76dd23fd9a97b
|
@@ -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.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: 2022-10-
|
11
|
+
date: 2022-10-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|