lib/para/i18n/inputs/nested_many_input.rb
# Extend remote partial params with the :_translations_form key if we're in the
# context of a translations form builder.
#
Extend remote partial params with the :_translations_form key if we're in the
context of a translations form builder.
Extend remote partial params with the : _translations_form key if we ' re in the context of a translations form builder .
def remote_partial_params
          super.tap do |remote_partial_params|
            if within_translations_form?
              remote_partial_params.deep_merge!(
                builder_options: {
                  Para::I18n::FormBuilder::TranslationsForm::TRANSLATIONS_FORM_PARAM_KEY => true,
                  locale: @builder.target_locale
                }
              )
            end
          end
        end
def remote_partial_params super . tap do | remote_partial_params | if within_translations_form? remote_partial_params . deep_merge! ( builder_options : { Para :: I18n :: FormBuilder :: TranslationsForm :: TRANSLATIONS_FORM_PARAM_KEY => true , locale : @builder . target_locale } ) end end end
Extend remote partial params with the :_translations_form key if we're in the
context of a translations form builder.
Extend remote partial params with the : _translations_form key if we ' re in the context of a translations form builder .