We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
first_published_at
1 parent e66947f commit 5e69415Copy full SHA for 5e69415
app/presenters/content_item/updatable.rb
@@ -14,7 +14,7 @@ def history
14
end
15
16
def first_public_at
17
- content_item["details"]["first_public_at"]
+ content_item["details"]["first_public_at"] || content_item["first_published_at"]
18
19
20
def public_updated_at
test/presenters/content_item/updatable_test.rb
@@ -35,8 +35,8 @@ class << @updatable
35
def content_item
36
{
37
'public_updated_at' => '2002-02-02',
38
+ 'first_published_at' => '2001-01-01',
39
'details' => {
- 'first_public_at' => '2001-01-01',
40
'change_history' => [
41
42
'note' => 'note',
0 commit comments