mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
17 lines
295 B
Ruby
17 lines
295 B
Ruby
module Arel
|
|
module Nodes
|
|
class TableAlias
|
|
attr_reader :name, :relation
|
|
alias :table_alias :name
|
|
|
|
def initialize name, relation
|
|
@name = name
|
|
@relation = relation
|
|
end
|
|
|
|
def [] name
|
|
Attribute.new self, name
|
|
end
|
|
end
|
|
end
|
|
end
|