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:
parent
f5e0979055
commit
f64d067ee4
1 changed files with 0 additions and 1 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue