10 lines
136 B
Ruby
10 lines
136 B
Ruby
module TextHelper
|
|
def first_paragraph(text)
|
|
if text.blank?
|
|
""
|
|
else
|
|
text.strip.split("\n").first
|
|
end
|
|
end
|
|
end
|