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'
|
when 'ask_category_id'
|
||||||
text = categories[ask_question.category_id].title rescue ''
|
text = categories[ask_question.category_id].title rescue ''
|
||||||
when 'sex'
|
when 'sex'
|
||||||
text = ask_question.sex
|
sex = ask_question.sex
|
||||||
if ['male','female'].include? sex.to_s
|
if ['male','female'].include? sex.to_s
|
||||||
text = I18n.t("mongoid.attributes.ask_question.#{sex}")
|
text = I18n.t("mongoid.attributes.ask_question.#{sex}")
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue