2017-02-13 13:58:58 -05:00
|
|
|
# frozen_string_literal: true
|
2018-02-24 01:45:50 -05:00
|
|
|
|
2018-02-24 02:41:47 -05:00
|
|
|
module Arel # :nodoc: all
|
2010-08-18 12:52:16 -04:00
|
|
|
module Nodes
|
2010-11-29 18:17:59 -05:00
|
|
|
class UnqualifiedColumn < Arel::Nodes::Unary
|
|
|
|
alias :attribute :expr
|
|
|
|
alias :attribute= :expr=
|
2010-08-18 12:52:16 -04:00
|
|
|
|
2010-12-03 18:24:30 -05:00
|
|
|
def relation
|
|
|
|
@expr.relation
|
|
|
|
end
|
|
|
|
|
2010-09-22 18:59:10 -04:00
|
|
|
def column
|
2010-11-29 18:17:59 -05:00
|
|
|
@expr.column
|
2010-09-22 18:59:10 -04:00
|
|
|
end
|
|
|
|
|
2010-08-18 12:52:16 -04:00
|
|
|
def name
|
2010-11-29 18:17:59 -05:00
|
|
|
@expr.name
|
2010-08-18 12:52:16 -04:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|