1. 03 9月, 2016 1 次提交
  2. 07 8月, 2016 1 次提交
  3. 27 12月, 2014 2 次提交
    • S
      Perform casting of single values within the predicate builder · 3179b4a8
      Sean Griffin 提交于
      As part of the larger refactoring to remove type casting from Arel, we
      need to do the casting of values eagerly. The predicate builder is the
      closest place that knows about the Active Record class, and can
      therefore have the type information.
      
      /cc @mrgilman
      
      [Sean Griffin & Melanie Gilman]
      3179b4a8
    • S
      Change `PredicateBuilder` handler methods to instance methods · a3936bbe
      Sean Griffin 提交于
      This will allow us to pass the predicate builder into the constructor of
      these handlers. The procs had to be changed to objects, because the
      `PredicateBuilder` needs to be marshalable. If we ever decide to make
      `register_handler` part of the public API, we should come up with a
      better solution which allows procs.
      
      /cc @mrgilman
      
      [Sean Griffin & Melanie Gilman]
      a3936bbe