Skip to content
Browse files

Make Relation#inspect less noisy

  • Loading branch information...
1 parent cfa2832 commit 13eb2c87e6b8296ca2ce2da36eb746e2b94a563b @lifo lifo committed Apr 2, 2010
Showing with 4 additions and 0 deletions.
  1. +4 −0 activerecord/lib/active_record/relation.rb
View
4 activerecord/lib/active_record/relation.rb
@@ -320,6 +320,10 @@ def ==(other)
end
end
+ def inspect
+ to_a.inspect
+ end
+
protected
def method_missing(method, *args, &block)

0 comments on commit 13eb2c8

Please sign in to comment.
Something went wrong with that request. Please try again.