Skip to content

Commit a574753

Browse files
committed
fix: Add missing multiline method
1 parent 1c0ce51 commit a574753

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)