aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/nodes/unqualified_column.rb
blob: f7ba653c1195a25fe5696343c2898908bb34aa06 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
module Arel
  module Nodes
    class UnqualifiedColumn < Arel::Nodes::Unary
      alias :attribute :expr
      alias :attribute= :expr=

      def column
        @expr.column
      end

      def name
        @expr.name
      end
    end
  end
end