提交 47addcce 编写于 作者: A Aaron Patterson

Merge pull request #4563 from amatsuda/ar_relation_pp

let AR::Relation pretty_printed like an Array
......@@ -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.
先完成此消息的编辑!
想要评论请 注册