<commit_before>#
# Changes the default css class for generated forms
# from '<asset>' to 'edit_<asset>' or 'new_<asset>'
# (using params[:action])
module SimpleForm
  module ActionViewExtensions
    module FormHelper
      def css_class_with_action(record, html_options)
        css_class = css_class_without_action(record, html_options)
        # Return defined class, or prepend controller action.
        html_options.key?(:class) ? css_class : [params[:action], css_class].join('_')
      end
      alias_method_chain :css_class, :action
    end
  end
end
<commit_msg>Just removed simple_forms generated css class, and fall through to form_for's default logic<commit_after>#
# Removes simple_form's css class logic.
module SimpleForm
  module ActionViewExtensions
    module FormHelper
      def simple_form_for(record, options={}, &block)
        options[:builder] ||= SimpleForm::FormBuilder
        options[:html] ||= {}
        unless options[:html].key?(:novalidate)
          options[:html][:novalidate] = !SimpleForm.browser_validations
        end

        with_custom_field_error_proc do
          form_for(record, options, &block)
        end
      end
    end
  end
end

{'fraction_non_alphanumeric': 0.09282700421940929, 'fraction_numerical': 0.0, 'mean_word_length': 3.5791505791505793, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3834083', 'n_tokens_mistral': 343, 'n_tokens_neox': 339, 'n_words': 93}