diff options
author | Pratik Naik <pratiknaik@gmail.com> | 2010-04-02 18:57:20 +0100 |
---|---|---|
committer | Pratik Naik <pratiknaik@gmail.com> | 2010-04-02 18:57:46 +0100 |
commit | 13eb2c87e6b8296ca2ce2da36eb746e2b94a563b (patch) | |
tree | ddd0540fd26a713f64ba2dc82a69428ceefa8002 /activerecord/lib | |
parent | cfa283201e079b4f700eb915490bcfa18451b11e (diff) | |
download | rails-13eb2c87e6b8296ca2ce2da36eb746e2b94a563b.tar.gz rails-13eb2c87e6b8296ca2ce2da36eb746e2b94a563b.tar.bz2 rails-13eb2c87e6b8296ca2ce2da36eb746e2b94a563b.zip |
Make Relation#inspect less noisy
Diffstat (limited to 'activerecord/lib')
-rw-r--r-- | activerecord/lib/active_record/relation.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/relation.rb b/activerecord/lib/active_record/relation.rb index 69d04d7375..4e62187449 100644 --- a/activerecord/lib/active_record/relation.rb +++ b/activerecord/lib/active_record/relation.rb @@ -320,6 +320,10 @@ module ActiveRecord end end + def inspect + to_a.inspect + end + protected def method_missing(method, *args, &block) |