fix type error

This commit is contained in:
chiu 2020-04-01 10:28:06 +08:00
parent c20baa8be3
commit e1b52466fb
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ class PersonalHonorsController < ApplicationController
end
current_locale = I18n.locale
honor_types = HonorType.all.pluck(:title).map { |title| { 'honor_type' => title[current_locale] } }
honor_types = HonorType.all.pluck(:title).map { |title| { 'honor_type' => title.to_h[current_locale] } }
honor_types.unshift({ 'honor_type' => t("personal_honor.honor_types_all") })
{