diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2011-01-03 13:39:56 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2011-01-03 13:39:56 -0800 |
commit | b035def39a8b4966fd33779bd5a2a9d0c9a33e66 (patch) | |
tree | 62c8553c08b117a6d11dba6d366ff46e10bf6026 /lib/arel | |
parent | 4acbe3864f5e5c4c8c70c5f58fbd5c09617d1662 (diff) | |
download | rails-b035def39a8b4966fd33779bd5a2a9d0c9a33e66.tar.gz rails-b035def39a8b4966fd33779bd5a2a9d0c9a33e66.tar.bz2 rails-b035def39a8b4966fd33779bd5a2a9d0c9a33e66.zip |
fixing tests for oracle visitor
Diffstat (limited to 'lib/arel')
-rw-r--r-- | lib/arel/visitors/visitor.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/arel/visitors/visitor.rb b/lib/arel/visitors/visitor.rb index 055acf9765..85359f3e67 100644 --- a/lib/arel/visitors/visitor.rb +++ b/lib/arel/visitors/visitor.rb @@ -13,7 +13,8 @@ module Arel def visit object send DISPATCH[object.class], object - rescue NoMethodError + rescue NoMethodError => e + raise e if respond_to?(DISPATCH[object.class], true) warn "visiting #{object.class} via superclass, this will be removed in arel 2.2.0" if $VERBOSE superklass = object.class.ancestors.find { |klass| respond_to?(DISPATCH[klass], true) |