提交 4c43dac5 编写于 作者: A Aaron Patterson

unfactoring more module inclusion

上级 1b62990c
......@@ -102,7 +102,6 @@ def each
session.read(self).each { |e| yield e }
end
module Operable
def join(other_relation = nil, join_class = InnerJoin)
case other_relation
when String
......@@ -169,8 +168,6 @@ def on(*predicates)
join_class.new(relation1, relation2, *predicates)
end
end
end
include Operable
def [](index)
attributes[index]
......
......@@ -23,7 +23,7 @@ module Arel
end
end
describe Relation::Operable do
describe 'Relation::Operable' do
describe 'joins' do
before do
@predicate = @relation[:id].eq(@relation[:id])
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册