Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assorted tidying up #1238

Merged
merged 6 commits into from
Jun 24, 2024
Merged

Assorted tidying up #1238

merged 6 commits into from
Jun 24, 2024

Conversation

csutter
Copy link
Contributor

@csutter csutter commented Jun 19, 2024

Some more minuscule cleanup/removals that we missed during the great Search Admin tidy up.

Copy link
Contributor

@leenagupte leenagupte left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I love a good tidy up! 🥇

@@ -6,7 +6,7 @@ def navigation_items
{
text: "External links",
href: recommended_links_path,
active: is_current?(recommended_links_path),
active: controller.controller_name == "recommended_links",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@@ -2,15 +2,15 @@ module FormsHelper
def error_items(record, field)
return unless record.errors[field].any?

record.errors[field].map do |error|
{ text: "#{field.to_s.humanize} #{error}" }
record.errors.full_messages_for(field).map do |error|
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉

@csutter csutter merged commit 286c38d into main Jun 24, 2024
10 checks passed
@csutter csutter deleted the tidyyy branch June 24, 2024 13:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants