Fix bug.
This commit is contained in:
parent
e8f9eaa722
commit
e8f8079cf8
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue