fix sign out and empty member

This commit is contained in:
2023-01-03 19:38:04 +02:00
parent 7cdaef455b
commit c56ae72926
3 changed files with 9 additions and 7 deletions

View File

@ -11,6 +11,7 @@ module ApplicationHelper
end
def markdown(text)
return "" if text.blank?
text = text.text unless text.is_a?(String)
return "" if text.blank?
self.renderer.render(text).html_safe
@ -19,5 +20,5 @@ module ApplicationHelper
def main_app
Rails.application.routes.url_helpers
end
end