1. 18 2月, 2015 1 次提交
    • S
      Rm `Type#type_cast` · ad127d88
      Sean Griffin 提交于
      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.
      ad127d88
  2. 08 2月, 2015 2 次提交
    • S
      rm `Type#number?` · 1492e83e
      Sean Griffin 提交于
      This predicate is only used in `query_attribute`, and is relatively easy
      to remove without adding a bunch of is a checks.
      1492e83e
    • S
      Move non-type objects into the `Type::Helpers` namespace · c4ef73af
      Sean Griffin 提交于
      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.
      c4ef73af