pulitzer 0.12.0 → 0.12.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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d37562d26310de6168c8cac9e81252dae07b7af9
|
4
|
+
data.tar.gz: 45ce730c080b751de2096f92cc5439f4e1e89afd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d76aa8ea50d0f87db62708fe73ba431eba9358d48f5bc3175595407469f9c3aa52c46b4c2a8d674e86a48f2516cf4fce5c69a8285b5a02e858380d9bf9b13737
|
7
|
+
data.tar.gz: 18da4c29b825a46e97f7d9889c869e25033207928d9aaaac7fb121d9051e14462ae5f0ce0beb610b64263547554499d3ccace79cf3d06c6f8700caeb365e32ac
|
@@ -8,7 +8,7 @@ module Pulitzer
|
|
8
8
|
belongs_to :content_element_type
|
9
9
|
belongs_to :post_type_content_element_type
|
10
10
|
delegate :type, :text_type?, :image_type?, :video_type?, to: :content_element_type
|
11
|
-
delegate :required?, :sort_order, to: :post_type_content_element_type
|
11
|
+
delegate :required?, :sort_order, to: :post_type_content_element_type, allow_nil: true
|
12
12
|
delegate :post, to: :version
|
13
13
|
|
14
14
|
attr_accessor :version_unavailable, :ensure_unique
|
@@ -4,7 +4,7 @@ module Pulitzer
|
|
4
4
|
belongs_to :free_form_section_type
|
5
5
|
has_many :partials, -> { order :sort_order}
|
6
6
|
|
7
|
-
delegate :sort_order, to: :free_form_section_type
|
7
|
+
delegate :sort_order, to: :free_form_section_type, allow_nil: true
|
8
8
|
|
9
9
|
def partial(name)
|
10
10
|
self.partials.to_a.detect{|ffs| ffs.name == name}
|
data/lib/pulitzer/version.rb
CHANGED