Skip to content

Commit

Permalink
WIP Appease brakeman
Browse files Browse the repository at this point in the history
  • Loading branch information
richardTowers committed Nov 14, 2024
1 parent 50d75a9 commit daec668
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
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 @@ -54,7 +54,7 @@ def details
extends_slug = body.delete("extends")
if extends_slug
extends = Document.find_by(slug: extends_slug).latest_edition
extends_body = YAML.load(extends.body, permitted_classes: [Date])
extends_body = YAML.safe_load(extends.body, permitted_classes: [Date])
body.reverse_merge!(extends_body)
end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ class PublishingApi::LandingPagePresenterTest < ActiveSupport::TestCase
first_published_at: @first_published_at = Time.zone.now,
updated_at: 1.year.ago,
images: [],
)
)

presented_landing_page = PublishingApi::LandingPagePresenter.new(landing_page)
presented_content = I18n.with_locale("en") { presented_landing_page.content }
Expand Down

0 comments on commit daec668

Please sign in to comment.