Skip to content

Commit

Permalink
Add MachineReadableMetadataHelper
Browse files Browse the repository at this point in the history
  • Loading branch information
leenagupte committed Sep 11, 2024
1 parent 62f4de2 commit 182a438
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app/helpers/machine_readable_metadata_helper.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module MachineReadableMetadataHelper
def machine_readable_metadata(args)
locals = { content_item: @content_item.content_item }.merge(args) # rubocop:disable Rails/HelperInstanceVariable
render("govuk_publishing_components/components/machine_readable_metadata", locals)
end
end

0 comments on commit 182a438

Please sign in to comment.