aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/json_serialization_test.rb
diff options
context:
space:
mode:
authoryuuji.yaginuma <yuuji.yaginuma@gmail.com>2018-12-21 10:28:06 +0900
committeryuuji.yaginuma <yuuji.yaginuma@gmail.com>2018-12-21 10:28:06 +0900
commitd5f8486d3f861f9848f4cd919fcdc33fe9f43dca (patch)
tree4d9127c93dc893c28cf15516b6a942603b6a4855 /activerecord/test/cases/json_serialization_test.rb
parent1ff22133139b3c8aa4fb9b691b677aa0e697ea77 (diff)
downloadrails-d5f8486d3f861f9848f4cd919fcdc33fe9f43dca.tar.gz
rails-d5f8486d3f861f9848f4cd919fcdc33fe9f43dca.tar.bz2
rails-d5f8486d3f861f9848f4cd919fcdc33fe9f43dca.zip
Use BigDecimal provided methods to convert String to BigDecimal
`String#to_d` does not raise an exception if an invalid value is specified. So can remove exception handling. ``` $ bundle exec ruby -v -rbigdecimal -rbigdecimal/util -e 'p "123,003".to_d' ruby 2.6.0dev (2018-12-21 trunk 66474) [x86_64-linux] 0.123e3 ```
Diffstat (limited to 'activerecord/test/cases/json_serialization_test.rb')
0 files changed, 0 insertions, 0 deletions