mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
9dc083f95d
Related to https://github.com/rails/rails/issues/44326 --- The changes introduced in [rails/rails#43421][] did not account for attempting to coerce the record with [#to_model][]. This commit resolves that issue and adds test coverage to guard against future regressions. Additionally, this adds tests to exercise `form_with` to ensure that it _does not_ call `#to_model` on its `model:` argument, since that was the behavior in [6.1.4.4][] [rails/rails#43421]: https://github.com/rails/rails/pull/43421 [#to_model]: https://edgeapi.rubyonrails.org/classes/ActiveModel/Conversion.html#method-i-to_model [6.1.4.4]: https://github.com/rails/rails/issues/44326#issuecomment-1029344241 |
||
---|---|---|
.. | ||
erb | ||
form_helper | ||
testing | ||
active_model_helper_test.rb | ||
asset_tag_helper_test.rb | ||
atom_feed_helper_test.rb | ||
capture_helper_test.rb | ||
compiled_templates_test.rb | ||
controller_helper_test.rb | ||
csp_helper_test.rb | ||
csrf_helper_test.rb | ||
date_helper_i18n_test.rb | ||
date_helper_test.rb | ||
dependency_tracker_test.rb | ||
digestor_test.rb | ||
erb_util_test.rb | ||
file_system_resolver_test.rb | ||
form_collections_helper_test.rb | ||
form_helper_test.rb | ||
form_options_helper_i18n_test.rb | ||
form_options_helper_test.rb | ||
form_tag_helper_test.rb | ||
html_test.rb | ||
javascript_helper_test.rb | ||
log_subscriber_test.rb | ||
lookup_context_test.rb | ||
number_helper_test.rb | ||
output_safety_helper_test.rb | ||
partial_iteration_test.rb | ||
record_identifier_test.rb | ||
render_test.rb | ||
resolver_shared_tests.rb | ||
sanitize_helper_test.rb | ||
streaming_render_test.rb | ||
tag_helper_test.rb | ||
template_error_test.rb | ||
template_path_test.rb | ||
template_test.rb | ||
test_case_test.rb | ||
test_test.rb | ||
text_helper_test.rb | ||
text_test.rb | ||
translation_helper_test.rb | ||
url_helper_test.rb |