lib/para/i18n/form_builder/nested_form.rb
# Don't allow nested fields destruction if we're in a translations form as this is
# the method used by the FormBuilder#remove_association_button method to check
# whether it's allowed to render the remove button or not.
#
Don't allow nested fields destruction if we're in a translations form as this is
the method used by the FormBuilder#remove_association_button method to check
whether it's allowed to render the remove button or not.
Don ' t allow nested fields destruction if we ' re in a translations form as this is the method used by the FormBuilder#remove_association_button method to check whether it ' s allowed to render the remove button or not .
def allow_destroy?
          return false if translations_form?
          super
        end
def allow_destroy? return false if translations_form? super end
Don't allow nested fields destruction if we're in a translations form as this is
the method used by the FormBuilder#remove_association_button method to check
whether it's allowed to render the remove button or not.
Don ' t allow nested fields destruction if we ' re in a translations form as this is the method used by the FormBuilder#remove_association_button method to check whether it ' s allowed to render the remove button or not .