提交 1c49b61d 编写于 作者: A Akira Matsuda

let AR::Relation pretty_printed like an Array

上级 983bf6d4
......@@ -496,6 +496,10 @@ def inspect
to_a.inspect
end
def pretty_print(q)
q.pp(self.to_a)
end
def with_default_scope #:nodoc:
if default_scoped? && default_scope = klass.send(:build_default_scope)
default_scope = default_scope.merge(self)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册