1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activemodel/test/models
Ryuta Kamizono 47a6d788dd Fix numericality validator to still use value before type cast except Active Record
The purpose of fe9547b is to work type casting to value from database.

But that was caused not to use the value before type cast even except
Active Record.

There we never guarantees that the value before type cast was going to
the used in this validation, but we should not change the behavior
unless there is some particular reason.

To restore original behavior, still use the value before type cast if
`came_from_user?` is undefined (i.e. except Active Record).

Fixes #33651.
Fixes #33686.
2018-08-24 00:44:02 +09:00
..
account.rb Use frozen string literal in activemodel/ 2017-07-16 20:11:16 +03:00
blog_post.rb Use frozen string literal in activemodel/ 2017-07-16 20:11:16 +03:00
contact.rb Use frozen string literal in activemodel/ 2017-07-16 20:11:16 +03:00
custom_reader.rb Use frozen string literal in activemodel/ 2017-07-16 20:11:16 +03:00
helicopter.rb Use frozen string literal in activemodel/ 2017-07-16 20:11:16 +03:00
person.rb Add cases to test combining validation conditions 2017-11-06 23:07:51 +00:00
person_with_validator.rb Use frozen string literal in activemodel/ 2017-07-16 20:11:16 +03:00
reply.rb Use frozen string literal in activemodel/ 2017-07-16 20:11:16 +03:00
sheep.rb Use frozen string literal in activemodel/ 2017-07-16 20:11:16 +03:00
topic.rb Fix numericality validator to still use value before type cast except Active Record 2018-08-24 00:44:02 +09:00
track_back.rb Use frozen string literal in activemodel/ 2017-07-16 20:11:16 +03:00
user.rb has_secure_password: use recovery_password instead of activation_token 2018-07-08 14:12:27 +03:00
visitor.rb Fix Ruby warnings tickled by the test suite 2018-06-30 10:20:45 +02:00