1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activerecord/lib/arel/nodes/unqualified_column.rb

23 lines
346 B
Ruby
Raw Normal View History

# 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