effective_pages 3.8.0 → 3.8.2

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: 4930be0c9a5c1cff7e270b54737b65da53b6d5170dfb3b3ee352dc0832c6df7d
4
- data.tar.gz: 15bc6e9fccc72c3d44bf05dbbc761318d6c913543fafffcd1048786e14fa838e
3
+ metadata.gz: 9f632bda6ecd6354cdc0b847273d858677aac6c00b4f65640d32a7c865394475
4
+ data.tar.gz: d6b2974416a2b89cbe8452b22993d09f6b72757d786d0e33efd0730e1a4b54ab
5
5
  SHA512:
6
- metadata.gz: 5827cc6dda4be17a4634b7f1e4d7816893ff1260eb1297318d0c36da98b5a291167439c6201bf7422e849a87ff2fa0b89a4724277ff99844f7ac117676d0e5fa
7
- data.tar.gz: 54c35160656ea7a1f5a949b170fa2c77e042572336a022e5d61402593734e410718c198b875e0689bdb47ea959ba14b452b1dddc2ad118cfc51679f248080724
6
+ metadata.gz: 7379d77cdaeb8708ae2f6ddacef70d8aba038b2dcca2f040e63cfe721cd4a4933f785a92e2f846286704aad9134be78617dfd8ecfe63df6c41896c309b072d8d
7
+ data.tar.gz: e6077d8018fb1505aafd84c98f5e727fe3d3275ca317f4eab5847246a65b3eb3ce6155cab046ae2bb403f56cd129b0e9dc30d82e2830a1aefd0a3a2688372296
@@ -15,8 +15,6 @@ module Effective
15
15
 
16
16
  log_changes if respond_to?(:log_changes)
17
17
 
18
- self.table_name = EffectivePages.carousel_items_table_name.to_s
19
-
20
18
  effective_resource do
21
19
  carousel :string # The hardcoded carousel I render underneath
22
20
 
@@ -16,7 +16,6 @@ module Effective
16
16
 
17
17
  log_changes if respond_to?(:log_changes)
18
18
 
19
-
20
19
  effective_resource do
21
20
  name :string # Unique name of this page banner. Just used for reference.
22
21
 
@@ -30,7 +29,7 @@ module Effective
30
29
  scope :random, -> { order('RANDOM()') }
31
30
 
32
31
  validates :name, presence: true, uniqueness: true, length: { maximum: 255 }
33
- validates :file, presence: true
32
+ validates :file, presence: true, content_type: :image, size: { less_than: 1.megabyte }
34
33
 
35
34
  validate(if: -> { file.attached? }) do
36
35
  self.errors.add(:file, 'must be an image') unless file.image?
@@ -12,7 +12,6 @@ module Effective
12
12
 
13
13
  log_changes if respond_to?(:log_changes)
14
14
 
15
-
16
15
  effective_resource do
17
16
  name :string # Set by developer. The unique name of this page section
18
17
  hint :text # Set by developer. A hint to display to user.
@@ -1,3 +1,3 @@
1
1
  module EffectivePages
2
- VERSION = '3.8.0'.freeze
2
+ VERSION = '3.8.2'.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.8.0
4
+ version: 3.8.2
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-08-24 00:00:00.000000000 Z
11
+ date: 2023-09-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails