Skip to content

Fix Rails 8.0 upgrade warnings#262

Merged
fabionl merged 4 commits into
developfrom
fix/warnings
Feb 1, 2026
Merged

Fix Rails 8.0 upgrade warnings#262
fabionl merged 4 commits into
developfrom
fix/warnings

Conversation

@fabionl
Copy link
Copy Markdown
Collaborator

@fabionl fabionl commented Feb 1, 2026

This PR addresses warnings introduced during the Rails 8.0 upgrade, ensuring compatibility and cleaner code.

Changes:

  • Updated application.rb to use load_defaults 8.0.
  • Replaced deprecated :unprocessable_entity with :unprocessable_content in admin controllers.
  • Fixed HTML-unsafe output warnings in ViewComponent components (e.g., welcomes_icon_component.rb, status_component.rb).
  • Removed leftover debugging logs and the Rails 8.0 initializer file.
  • Updated related RSpec specs for consistency.

…tity with :unprocessable_content

Updates status code symbols to fix Rack 3.x deprecation warnings.
Affects admin controllers, specs, and Devise configuration.
Change load_defaults to Rails v8.0
Wrap plain string returns in tag.span() for Facilities::StatusComponent
and Facilities::DiscardReasonComponent to resolve ViewComponent 3.x
HTML-unsafe output warnings. Update specs to use have_text() matchers
instead of eq() for component output assertions.
@fabionl fabionl merged commit 8ce6170 into develop Feb 1, 2026
2 of 3 checks passed
@fabionl fabionl deleted the fix/warnings branch February 1, 2026 16:06
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.

1 participant