提交 039f724c 编写于 作者: M Michael Koziarski

Minor formatting changes


git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8869 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
上级 de048b10
......@@ -161,9 +161,9 @@ def method_missing(method, *args)
if @target.respond_to?(method) || (!@reflection.klass.respond_to?(method) && Class.respond_to?(method))
super { |*block_args| yield(*block_args) if block_given? }
else
@reflection.klass.send(:with_scope, construct_scope) {
@reflection.klass.send(method, *args) { |*block_args| yield(*block_args) if block_given? }
}
@reflection.klass.send(:with_scope, construct_scope) do
@reflection.klass.send(method, *args) { |*block_args| yield(*block_args) if block_given? }
end
end
end
......
......@@ -132,9 +132,9 @@ def method_missing(method, *args)
if @target.respond_to?(method) || (!@reflection.klass.respond_to?(method) && Class.respond_to?(method))
super { |*block_args| yield(*block_args) if block_given? }
else
@reflection.klass.send(:with_scope, construct_scope) {
@reflection.klass.send(method, *args) { |*block_args| yield(*block_args) if block_given? }
}
@reflection.klass.send(:with_scope, construct_scope) do
@reflection.klass.send(method, *args) { |*block_args| yield(*block_args) if block_given? }
end
end
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册