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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dc94daa090bc71f140cb7046106a2b6b3e1dd023214603efa43319865e7b9ab5
|
4
|
+
data.tar.gz: db2dac9f7c9aafd2a37b822e951e03956921fa6d704a1ad75bc89ffcb533e87f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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, -> {
|
35
|
+
scope :deep, -> { with_attached_file.includes(:rich_texts) }
|
36
36
|
scope :sorted, -> { order(:name) }
|
37
37
|
|
38
38
|
def to_s
|