rzane/baby_squeel

View on GitHub
lib/baby_squeel/nodes/grouping.rb

Summary

Maintainability
A
0 mins
Test Coverage
require 'baby_squeel/nodes/node'

module BabySqueel
  module Nodes
    # See: https://github.com/rails/arel/pull/435
    class Grouping < Node
      def initialize(node)
        super
        node.extend Arel::AliasPredication
        node.extend Arel::OrderPredications
        node.extend Arel::Math
        node.extend Arel::Expressions
      end
    end
  end
end