effective_pages 3.3.0 → 3.3.1

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: 2620fbfec6b912fd31b7d9821fe5ef73eecbfb4c509063883f8c144a2aa66d30
4
- data.tar.gz: d75935c05702f1328e32058f45874999a3b3b3f7f7becab1202c4d18b9dee743
3
+ metadata.gz: dc94daa090bc71f140cb7046106a2b6b3e1dd023214603efa43319865e7b9ab5
4
+ data.tar.gz: db2dac9f7c9aafd2a37b822e951e03956921fa6d704a1ad75bc89ffcb533e87f
5
5
  SHA512:
6
- metadata.gz: 9dd4484e144bbbb2287dc399eb93bbae86b423c05fea8ca0bd0f7d5f716e384ebc1d935eef964166517b6358d1565f539c32894d6a2992e851a3e2d9104a6192
7
- data.tar.gz: f1fa33f1bd839164cb281f23a3439f4d624458120061d7aeb7a0c2e16703d7b46d7043ae4abaf4878cea8bbf65e5a8a0710a02c00fbe0c8185f9df28e1e3e46c
6
+ metadata.gz: 89cb2532dadbd98cff7b9a519e1effdf1215455026b3cf94b4a203ae4c885d9e7c8d65f3cfdcf012b96e80d0ff6252b453808551473b16e9fcedb1f7e41673f1
7
+ data.tar.gz: 7705cfbdb397145d35e511804b1e9e1f4857e5db6a2ff605825fec07cccea1ebd9ce77c7ff167b5fcfdc33be744794104ccf6d421f5d342ba1cc8a6439153aa0
@@ -6,7 +6,7 @@ module Effective
6
6
  belongs_to :owner, polymorphic: true, optional: true
7
7
 
8
8
  has_many_rich_texts
9
- has_many_attached :files
9
+ has_one_attached :file
10
10
 
11
11
  log_changes if respond_to?(:log_changes)
12
12
 
@@ -32,7 +32,7 @@ module Effective
32
32
  validates :link_url, presence: true, if: -> { link_label.present? }
33
33
  validates :link_url, absence: true, if: -> { link_label.blank? }
34
34
 
35
- scope :deep, -> { with_attached_files.includes(:rich_texts) }
35
+ scope :deep, -> { with_attached_file.includes(:rich_texts) }
36
36
  scope :sorted, -> { order(:name) }
37
37
 
38
38
  def to_s
@@ -18,7 +18,7 @@
18
18
  .col= f.text_field :link_label
19
19
  .col= f.url_field :link_url
20
20
 
21
- = f.file_field :files, label: 'Attachment'
21
+ = f.file_field :file, label: 'Attachment'
22
22
 
23
23
  = f.text_field :caption
24
24
 
@@ -1,3 +1,3 @@
1
1
  module EffectivePages
2
- VERSION = '3.3.0'.freeze
2
+ VERSION = '3.3.1'.freeze
3
3
  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.3.0
4
+ version: 3.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect