1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/actionview/test/activerecord
Travis Grathwell 3efd90ac5b Fix form_for to work with objects that implement to_model
Previously, if you tried to use form_for with a presenter object
that implements to_model, it would crash in
action_dispatch/routing/polymorphic_routes.rb when asking the presenter
whether it is .persisted?

Now, we always ask .persisted? of the to_model object instead.

This seems to been an issue since 1606fc9d84

Signed-off-by: Eugenia Dellapenna <eugenia.dellapenna@gmail.com>
2014-12-29 18:12:03 -08:00
..
controller_runtime_test.rb Removed warning 2014-08-18 20:41:03 -03:00
debug_helper_test.rb Move test that depends on ActiveRecord 2014-11-21 12:38:28 -08:00
form_helper_activerecord_test.rb Remove wrapping div with inline styles for hidden form fields. 2014-04-14 19:45:12 +02:00
polymorphic_routes_test.rb Fix form_for to work with objects that implement to_model 2014-12-29 18:12:03 -08:00
render_partial_with_record_identification_test.rb