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 aa8759c
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

Check failure on line 6 in app/helpers/machine_readable_metadata_helper.rb

View workflow job for this annotation

GitHub Actions / Lint Ruby / Run RuboCop

Layout/TrailingEmptyLines: Final newline missing. (https://rubystyle.guide#newline-eof)

0 comments on commit aa8759c

Please sign in to comment.