Skip to content

Commit d1770fc

Browse files
authored
Merge pull request #66 from blocknotes/fix-missing-method
Add missing multiline method
2 parents 1c0ce51 + a574753 commit d1770fc

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

lib/tiny_admin/support.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,12 @@ def to_date(value, options: [])
3737
value&.to_s
3838
end
3939

40+
def multiline(array, options: [])
41+
return unless array.is_a?(Array)
42+
43+
raw_html(array.join("<br/>"))
44+
end
45+
4046
def upcase(value, options: [])
4147
value&.upcase
4248
end

0 commit comments

Comments
 (0)