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

21 lines
301 B
Ruby
Raw Normal View History

2010-08-18 12:52:16 -04:00
module Arel
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