aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/type/decimal_without_scale.rb
Commit message (Collapse)AuthorAgeFilesLines
* Treat strings greater than int max value as out of rangeSean Griffin2014-10-311-2/+2
| | | | | | | | | | | Sufficiently large integers cause `find` and `find_by` to raise `StatementInvalid` instead of `RecordNotFound` or just returning `nil`. Given that we can't cast to `nil` for `Integer` like we would with junk data for other types, we raise a `RangeError` instead, and rescue in places where it would be highly unexpected to get an exception from casting. Fixes #17380
* Move types to the top level `ActiveRecord` namespaceSean Griffin2014-05-271-0/+11
`ActiveRecord::ConnectionAdapters::Type::Value` => `ActiveRecord::Type::Value`