diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2018-11-12 03:39:28 +0900 |
---|---|---|
committer | Ryuta Kamizono <kamipo@gmail.com> | 2018-11-12 03:39:28 +0900 |
commit | a741208f80dd33420a56486bd9ed2b0b9862234a (patch) | |
tree | d718f93e317084e299379b134135d600520150ea /activejob/test | |
parent | 44bee7f242da1df49a31416b762e0a03467ae2bb (diff) | |
download | rails-a741208f80dd33420a56486bd9ed2b0b9862234a.tar.gz rails-a741208f80dd33420a56486bd9ed2b0b9862234a.tar.bz2 rails-a741208f80dd33420a56486bd9ed2b0b9862234a.zip |
Ensure casting by decimal attribute when querying
Related 34cc301f03aea2e579d6687a9ea9782afc1089a0.
`QueryAttribute#value_for_database` calls only `type.serialize`, and
`Decimal#serialize` is a no-op unlike other attribute types.
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.
Diffstat (limited to 'activejob/test')
0 files changed, 0 insertions, 0 deletions