aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/boolean_test.rb
Commit message (Collapse)AuthorAgeFilesLines
* Ensure casting by boolean attribute when queryingRyuta Kamizono2018-05-291-0/+43
`QueryAttribute#value_for_database` calls only `type.serialize`, and `Boolean#serialize` is a no-op unlike other attribute types. It caused the issue #32624. Whether or not `serialize` will invoke `cast` is undefined in our test cases, but it actually does not work properly unless it does so for now. Fixes #32624.