forked from saurabh/personal-honor
fix type error
This commit is contained in:
parent
c20baa8be3
commit
e1b52466fb
|
@ -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") })
|
||||
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue