Skip to content

Commit

Permalink
Merge pull request #268 from alphagov/tweak-travel-advice
Browse files Browse the repository at this point in the history
Avoid use of `map!` on travel advice
  • Loading branch information
fofr authored Mar 2, 2017
2 parents 5078407 + 6edef85 commit 5fe1c5b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ Not all formats that this app can handle are rendered by it in production.
| Speech | | Rendered by Whitehall |
| Take part | [View on GOV.UK](https://www.gov.uk/government/get-involved/take-part/become-a-councillor) | Migrated |
| Topical event about page | [View on GOV.UK](https://www.gov.uk/government/topical-events/2014-overseas-territories-joint-ministerial-council/about) | Migrated |
| Travel advice | [View on GOV.UK](https://www.gov.uk/foreign-travel-advice/nepal) | Rendered by multipage-frontend |
| Unpublishing | | Rendered by Whitehall, might not be migrated |
| Working group | [View on GOV.UK](https://www.gov.uk/government/groups/2gether-nhs-foundation-trust) | Migrated |

Expand Down
2 changes: 1 addition & 1 deletion app/presenters/travel_advice_presenter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def print_link
# Remove when alert status boxes no longer in travel advice publisher
def alert_status
alert_statuses = content_item["details"]["alert_status"] || []
alert_statuses.map! do |alert|
alert_statuses = alert_statuses.map do |alert|
content_tag(:p, I18n.t("travel_advice.alert_status.#{alert}").html_safe)
end

Expand Down

0 comments on commit 5fe1c5b

Please sign in to comment.