effective_pages 3.4.7 → 3.4.9

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: 933fc5db114e377482e0933ca487de0751612f33071d8a1cea460bab2e6774fb
4
- data.tar.gz: fc6145732ae9ed054a598edf746fe6d64ba36a7b8a6aac5fa39388d3a6215c4c
3
+ metadata.gz: 5748cf10a1d447f6b636dc8972884464700b3752ed96086e3a16991621b2955a
4
+ data.tar.gz: 027050a2f8acd57d4e8170e3a900c02c4dde8c1a3b3f4f2465222dc91525cf5a
5
5
  SHA512:
6
- metadata.gz: e9292e53c8cfa5b03ace5fd81313e04adcecc535754c607556e09c4bc5fbb337e566984343c3e6a4af9fb060d8578602d381060109260476d5ddce3c58120c7b
7
- data.tar.gz: aaa98cf1b1436d494a488cea0ea2bb8f9b4917223b90a54a5873120bdc831eb9b1979f2fec39367418d977fbe7a0c9d797f25243eb9641515e066fb49b9545c2
6
+ metadata.gz: 3be8ad1c24739aaf895becf0865176d6165cf5ebbf58a3f85b3df02763ef6d59449c298f2ba13c0b0dd6f0dee46828e78112b91a865773b693f330fa48496129
7
+ data.tar.gz: 5cdd3c7b4b294c525398d7b3405f042092de6d141d42bcdb175dfdd3eb32926c000fccf9eb3da9cb5f3fd5276188f8615ba5681c78d4931f08cc5716ff5a2a28
@@ -1,4 +1,4 @@
1
- - EffectivePages.carousels.each do |carousel|
1
+ - Array(EffectivePages.carousels).each do |carousel|
2
2
  .bg-white.my-5.p-3.rounded
3
3
  %h3.mb-0 #{carousel.to_s.titleize} Carousel
4
4
  - datatable = EffectiveCarouselItemsDatatable.new(carousel: carousel)
@@ -1,3 +1,3 @@
1
1
  module EffectivePages
2
- VERSION = '3.4.7'.freeze
2
+ VERSION = '3.4.9'.freeze
3
3
  end
@@ -60,11 +60,11 @@ module EffectivePages
60
60
  end
61
61
 
62
62
  def self.carousels?
63
- carousels.kind_of?(Array)
63
+ carousels.kind_of?(Array) && carousels.present?
64
64
  end
65
65
 
66
66
  def self.menus?
67
- menus.kind_of?(Array)
67
+ menus.kind_of?(Array) && menus.present?
68
68
  end
69
69
 
70
70
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_pages
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.4.7
4
+ version: 3.4.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect