diff options
author | Alex Lin <ww2lin@gmail.com> | 2014-03-25 00:04:55 -0400 |
---|---|---|
committer | Alex Lin <ww2lin@gmail.com> | 2014-03-25 00:04:55 -0400 |
commit | 78196509c3c6f2ee38225819efc5a88e8d95f8f7 (patch) | |
tree | 7fbc991688b1617acaa391cd0bde5595d82dff5e /lib/arel/visitors | |
parent | c52df44784308e5d3cd608566fd9a3514ce28959 (diff) | |
download | rails-78196509c3c6f2ee38225819efc5a88e8d95f8f7.tar.gz rails-78196509c3c6f2ee38225819efc5a88e8d95f8f7.tar.bz2 rails-78196509c3c6f2ee38225819efc5a88e8d95f8f7.zip |
removed the attribute that was left in for testing
Diffstat (limited to 'lib/arel/visitors')
-rw-r--r-- | lib/arel/visitors/visitor.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/arel/visitors/visitor.rb b/lib/arel/visitors/visitor.rb index 437dc68e92..0540445088 100644 --- a/lib/arel/visitors/visitor.rb +++ b/lib/arel/visitors/visitor.rb @@ -18,7 +18,7 @@ module Arel DISPATCH[self.class] end - def visit object, attribute = nil + def visit object send dispatch[object.class], object rescue NoMethodError => e raise e if respond_to?(dispatch[object.class], true) |