Skip to content

Commit

Permalink
deepsort content item in presenter
Browse files Browse the repository at this point in the history
  • Loading branch information
aldavidson committed Jun 27, 2023
1 parent f5c47b2 commit 38aab29
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/presenters/content_item_presenter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ def as_json(options = nil)
).tap { |i|
i["redirects"] = item["redirects"] if i["schema_name"] == "redirect"
}.deep_stringify_keys
HashSorter.sort(item_hash)
end

private
Expand Down

0 comments on commit 38aab29

Please sign in to comment.