diff options
author | Bryan Helmkamp <bryan@brynary.com> | 2009-05-18 01:49:50 -0400 |
---|---|---|
committer | Bryan Helmkamp <bryan@brynary.com> | 2009-05-18 01:49:50 -0400 |
commit | 082079169caab2a00f62d9de9c4bdb5dcbc591aa (patch) | |
tree | 8bb2524b539fd11a46059e5336a8a0c3c1c2815b /lib | |
parent | 8feb358bd00cea30eb677e32f10995f5eddc167a (diff) | |
download | rails-082079169caab2a00f62d9de9c4bdb5dcbc591aa.tar.gz rails-082079169caab2a00f62d9de9c4bdb5dcbc591aa.tar.bz2 rails-082079169caab2a00f62d9de9c4bdb5dcbc591aa.zip |
Better inspect output for Expressions
Diffstat (limited to 'lib')
-rw-r--r-- | lib/arel/algebra/primitives/expression.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/arel/algebra/primitives/expression.rb b/lib/arel/algebra/primitives/expression.rb index 5566e2d0b7..875498c282 100644 --- a/lib/arel/algebra/primitives/expression.rb +++ b/lib/arel/algebra/primitives/expression.rb @@ -13,6 +13,10 @@ module Arel true end + def inspect + "<#{self.class.name} #{attribute.inspect}>" + end + module Transformations def as(aliaz) self.class.new(attribute, aliaz, self) |