aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/nodes/unqualified_column.rb
blob: 9882cb08e2ec2ef783c0e9141558bcdd68a36ff0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
module Arel
  module Nodes
    class UnqualifiedColumn
      attr_accessor :attribute

      def initialize attribute
        @attribute = attribute
      end

      def column
        @attribute.column
      end

      def name
        @attribute.name
      end
    end
  end
end