This commit is contained in:
邱博亞 2024-03-24 10:25:45 +08:00
parent e8f9eaa722
commit e8f8079cf8
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ wb.add_worksheet(name: "Ask Question") do |sheet|
when 'ask_category_id'
text = categories[ask_question.category_id].title rescue ''
when 'sex'
text = ask_question.sex
sex = ask_question.sex
if ['male','female'].include? sex.to_s
text = I18n.t("mongoid.attributes.ask_question.#{sex}")
else