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: 9e671281634ffe553daa9e05de8737783dd3e75797e8f6cc8351c033195a3225
4
- data.tar.gz: '03329baf24496ed2a2e1a6b2ec2a832ee6ca17b61be20f8ba22ce225d569262b'
3
+ metadata.gz: b7e7436b43a4cfa2c411726504dfebd9b9d2f57882c81a34b96050c05180a5db
4
+ data.tar.gz: d8100f839281181a472c7d4b57057d938b3b47e6a02b7a57c4898d14e7c38432
5
5
  SHA512:
6
- metadata.gz: e7c5fd0aed362d4734239243c1858c55be641c4bef6793d92ca629e78f60fc7a3f2db81c22f7a13f3c3e064a103e8ea93dc50a878879a7b3705227f5fc9c055e
7
- data.tar.gz: 80995b8e52e82f1d6fb13942e8395e74ea523b351d116ecde7ccf96e6be100df79d6e39c9bf458a4b8d5591392e4c77b605b598e394b394f7364fc8ccc485af0
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.to_param, { 'data-html': label }, child.menu_name]
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
- raise("unable to find page banner for page #{page}") unless page_banner.present?
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
- raise("unable to find page section with name #{name}") unless page_section.present?
15
+ return if page_section.blank?
16
16
 
17
17
  if block_given?
18
18
  yield(page_section); nil
@@ -1,3 +1,3 @@
1
1
  module EffectivePages
2
- VERSION = '3.4.2'.freeze
2
+ VERSION = '3.4.4'.freeze
3
3
  end
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.2
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-17 00:00:00.000000000 Z
11
+ date: 2022-10-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails