Skip to content

DEPRECATION WARNING: String#mb_chars in Rails 8.1+ #2965

@samuelLkennedy

Description

@samuelLkennedy

When using Administrate with Rails 8.1, a deprecation warning is triggered for String#mb_chars and ActiveSupport::Multibyte::Chars. The suggested fix is to use normal string methods instead.

Example location was found in search:
https://github.com/thoughtbot/administrate/blob/main/lib/administrate/search.rb#L114
["%#{term.mb_chars.downcase}%"] * fields_count

Suggesting in prep of future Rails updates. Thanks for checking this out and lmk if my issue is whack because I'm new to writing them 👍

Metadata

Metadata

Assignees

No one assigned

    Labels

    dependencieschanges or issues relating to a dependencysearchfinding things through our models

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions