Remove helper not used anymore because lexical handles it

https://github.com/basecamp/actiontext-lexical/pull/18
This commit is contained in:
Jorge Manrubia
2025-07-01 09:44:24 +02:00
parent 2ab322adfe
commit a5f5a4ec26
2 changed files with 1 additions and 5 deletions
-4
View File
@@ -6,8 +6,4 @@ module ApplicationHelper
def icon_tag(name, **options)
tag.span class: class_names("icon icon--#{name}", options.delete(:class)), "aria-hidden": true, **options
end
def filterable_name(text)
I18n.transliterate(text.to_s).downcase
end
end
@@ -1,4 +1,4 @@
<lexical-prompt-item search="<%= "#{filterable_name(user.name)} #{user.initials}" %>" sgid="<%= user.attachable_sgid %>">
<lexical-prompt-item search="<%= "#{user.name} #{user.initials}" %>" sgid="<%= user.attachable_sgid %>">
<template type="menu">
<%= avatar_image_tag user %>
<%= user.name %>