1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

visiting via superclass is OK, since module definitions help delegate

This commit is contained in:
Aaron Patterson 2011-01-04 19:53:37 -08:00
parent f5e0979055
commit f64d067ee4

View file

@ -15,7 +15,6 @@ module Arel
send DISPATCH[object.class], object
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)
}