Skip to content

Commit

Permalink
Reduce to just attachments for the moment
Browse files Browse the repository at this point in the history
  • Loading branch information
KludgeKML committed Oct 28, 2024
1 parent f1a69aa commit 6c11651
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion app/models/landing_page.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
class LandingPage < Edition
include ::Attachable
include Edition::Images
include Edition::Organisations

skip_callback :validation, :before, :update_document_slug
Expand Down
2 changes: 1 addition & 1 deletion app/presenters/publishing_api/landing_page_presenter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def document_type
def details
YAML.load(item.body, permitted_classes: [Date])
.merge(Image.for(item))
.merge(PayloadBuilder::Attachments.for(news_article))
.merge(PayloadBuilder::Attachments.for(item))
end
end
end

0 comments on commit 6c11651

Please sign in to comment.