aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/arel/nodes/unqualified_column.rb
blob: 7c3e0720d7122ad8bab0f812f635d9d656413d74 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# frozen_string_literal: true

module Arel # :nodoc: all
  module Nodes
    class UnqualifiedColumn < Arel::Nodes::Unary
      alias :attribute :expr
      alias :attribute= :expr=

      def relation
        @expr.relation
      end

      def column
        @expr.column
      end

      def name
        @expr.name
      end
    end
  end
end