From ef542aec3d479d06cb460c2f671a0c3a31bf9849 Mon Sep 17 00:00:00 2001 From: Martin Fenner Date: Mon, 3 May 2021 17:46:25 +0200 Subject: [PATCH] handle edge case --- app/models/user.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/user.rb b/app/models/user.rb index f02fd5c3e..50c839a08 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -158,9 +158,9 @@ def self.reset(username) subject = "#{title}: Password Reset Request" account_type = if user.instance_of?(Provider) - user.member_type.humanize + user.member_type.to_s.humanize else - user.client_type.humanize + user.client_type.to_s.humanize end text = User.format_message_text(