Rename method

This commit is contained in:
Jorge Manrubia
2025-11-06 11:01:21 +01:00
parent c926d7ad6c
commit f5dfcd461c
+3 -3
View File
@@ -10,11 +10,11 @@ class Event::Description
end
def to_html
sentence(creator_tag, card_title_tag).html_safe
to_sentence(creator_tag, card_title_tag).html_safe
end
def to_plain_text
sentence(creator_text, card.title)
to_sentence(creator_text, card.title)
end
private
@@ -37,7 +37,7 @@ class Event::Description
tag.span card.title, class: "txt-underline"
end
def sentence(creator, card_title)
def to_sentence(creator, card_title)
if event.action.comment_created?
comment_sentence(creator, card_title)
else