effective_pages 3.8.1 → 3.8.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: 93461d891693d48f4a9610dc33406c38620c9b8470ef64cd0953e7c31f45ef7c
|
4
|
+
data.tar.gz: 9f0ae01994f41320788d6b183be99860d23a4103cdff78a8314fcf610e65b28a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c10f7ec96802a69effc73b984362c5147aeb1cc2f96e5a871b059542938b91de525f5cb42f06c0e58828b5eac966362f21ca8f0da0ff9dcc37b224cb05f44805
|
7
|
+
data.tar.gz: 47527c78afcf1dc278acf6ddd87db09bf319f6e7d36128fbe586e2c67d822316813b13d37377806d3cf8a78bf856b49ef7aa5016fd004d7dc6c2004f640ff2d2
|
@@ -9,7 +9,7 @@ module EffectiveCarouselsHelper
|
|
9
9
|
raise("unable to find carousel #{name}. Please add it to config/initializers/effective_pages.rb")
|
10
10
|
end
|
11
11
|
|
12
|
-
carousel_items = Effective::CarouselItem.sorted.where(carousel: carousel)
|
12
|
+
carousel_items = Effective::CarouselItem.sorted.deep.where(carousel: carousel)
|
13
13
|
return if carousel_items.blank?
|
14
14
|
|
15
15
|
if block_given?
|
@@ -29,7 +29,7 @@ module Effective
|
|
29
29
|
scope :random, -> { order('RANDOM()') }
|
30
30
|
|
31
31
|
validates :name, presence: true, uniqueness: true, length: { maximum: 255 }
|
32
|
-
validates :file, presence: true
|
32
|
+
validates :file, presence: true, content_type: :image, size: { less_than: 1.megabyte }
|
33
33
|
|
34
34
|
validate(if: -> { file.attached? }) do
|
35
35
|
self.errors.add(:file, 'must be an image') unless file.image?
|
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.8.
|
4
|
+
version: 3.8.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: 2023-
|
11
|
+
date: 2023-11-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|