diff --git a/app/controllers/personal_honors_controller.rb b/app/controllers/personal_honors_controller.rb index 3b3104b..23cbbe9 100644 --- a/app/controllers/personal_honors_controller.rb +++ b/app/controllers/personal_honors_controller.rb @@ -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") }) {