rails/activemodel/test
Vasiliy Ermolovich 433bd5995d Raise `NoMethodError` in `ActiveModel::Type::Value#as_json` method.
Right now since we have instance variable called `itself_if_serialize_cast_value_compatible`
assigned to self when we run `as_json` we get stack too deep error because `as_json` calls
`as_json` on every instance variable. And since `@itself_if_serialize_cast_value_compatible` references
to `self` we run into recursion.

And before that we were returning unpredictable data from `as_json` method so it's better to let it to throw
an error and let user know that Value class is not supposed to be converted to json.
2022-11-25 21:25:06 +01:00
..
cases Raise `NoMethodError` in `ActiveModel::Type::Value#as_json` method. 2022-11-25 21:25:06 +01:00
models Add beginless range support to clusivity 2022-05-20 07:46:01 +10:00
validators Revert "Merge pull request #37504 from utilum/no_implicit_conversion_of_nil" 2019-12-09 11:50:39 -03:00