Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Register adapter specific types with the global type registry | Sean Griffin | 2015-02-15 | 1 | -1/+4 |
| | | | | | | We do this in the adapter classes specifically, so the types aren't registered if we don't use that adapter. Constants under the PostgreSQL namespace for example are never loaded if we're using mysql. | ||||
* | Add a global type registry, used to lookup and register types | Sean Griffin | 2015-02-15 | 1 | -0/+139 |
As per previous discussions, we want to give users the ability to reference their own types with symbols, instead of having to pass the object manually. This adds the class that will be used to do so. ActiveRecord::Type.register(:money, MyMoneyType) |