aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/type/helpers/numeric.rb
Commit message (Collapse)AuthorAgeFilesLines
* Rm `Type#type_cast`Sean Griffin2015-02-171-1/+1
| | | | | | | | | This helper no longer makes sense as a separate method. Instead I'll just have `deserialize` call `cast` by default. This led to a random infinite loop in the `JSON` pg type, when it called `super` from `deserialize`. Not really a great way to fix that other than not calling super, or continuing to have the separate method, which makes the public API differ from what we say it is.
* rm `Type#number?`Sean Griffin2015-02-071-4/+0
| | | | | This predicate is only used in `query_attribute`, and is relatively easy to remove without adding a bunch of is a checks.
* Move non-type objects into the `Type::Helpers` namespaceSean Griffin2015-02-071-0/+38
The type code is actually quite accessible, and I'm planning to encourage people to look at the files in the `type` folder to learn more about how it works. This will help reduce the noise from code that is less about type casting, and more about random AR nonsense.