map -> pluck
This commit is contained in:
@@ -15,7 +15,7 @@ module Bucket::View::Summarized
|
||||
end
|
||||
|
||||
def assignee_summary
|
||||
"assigned to <mark>#{assignees.map(&:name).to_choice_sentence}</mark>" if assignees.any?
|
||||
"assigned to <mark>#{assignees.pluck(:name).to_choice_sentence}</mark>" if assignees.any?
|
||||
end
|
||||
|
||||
def tag_summary
|
||||
|
||||
@@ -1 +1 @@
|
||||
<span>Assigned to <%= event.assignees.map(&:name).to_sentence %> <%= time_ago_in_words(event.created_at) %> ago.</span>
|
||||
<span>Assigned to <%= event.assignees.pluck(:name).to_sentence %> <%= time_ago_in_words(event.created_at) %> ago.</span>
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
</span>
|
||||
|
||||
<span>
|
||||
<%= tag.bubbles.map(&:title).to_sentence %>
|
||||
<%= tag.bubbles.pluck(:title).to_sentence %>
|
||||
</span>
|
||||
|
||||
<%= button_to tag_path(tag), class: "btn txt-small", method: :delete, data: { turbo_confirm: "Are you sure?" } do %>
|
||||
|
||||
Reference in New Issue
Block a user