提交 1b62990c 编写于 作者: A Aaron Patterson

unfactoring to use concrete delegate methods

上级 4fcd1622
......@@ -3,9 +3,6 @@ class Compound
include Relation
attr_reader :relation, :engine
delegate :joins, :join?, :inserts, :taken, :skipped, :name, :externalizable?,
:column_for, :locked, :table_alias, :array,
:to => :relation
def initialize relation
@relation = relation
......@@ -18,6 +15,15 @@ def initialize relation
@projections = nil
end
def join?; @relation.join? end
def name; @relation.name end
def table_alias; @relation.table_alias end
def skipped; @relation.skipped end
def taken; @relation.taken end
def joins env; @relation.joins env end
def column_for attr; @relation.column_for attr end
def externalizable?; @relation.externalizable? end
def sources
@relation.sources
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册