From 1fb1437886b05bf55d5e160dbb1bea662b41eb92 Mon Sep 17 00:00:00 2001 From: Marko Lovic Date: Thu, 23 Aug 2018 18:22:58 +0200 Subject: [PATCH] Fix merging_translatable_field_options helper --- app/helpers/translatable_form_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/helpers/translatable_form_helper.rb b/app/helpers/translatable_form_helper.rb index a8d9d1c78..00d143999 100644 --- a/app/helpers/translatable_form_helper.rb +++ b/app/helpers/translatable_form_helper.rb @@ -18,7 +18,7 @@ module TranslatableFormHelper style: display_translation?(locale), data: options.fetch(:data, {}).merge(locale: locale), label_options: { - class: "#{options[:class]} js-globalize-attribute".strip, + class: "#{options.dig(:label_options, :class)} js-globalize-attribute".strip, style: display_translation?(locale), data: (options.dig(:label_options, :data) || {}) .merge(locale: locale) }