Skip to content

Commit 162ae3b

Browse files
committed
message.list.name
1 parent c70a044 commit 162ae3b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

app/models/message.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,10 @@ def from_string(str)
8787
end
8888
end
8989

90+
def list
91+
@list ||= List.find_by_id(list_id)
92+
end
93+
9094
def count_recursively(count = 0)
9195
count + 1 + (children&.sum(&:count_recursively) || 0)
9296
end

0 commit comments

Comments
 (0)