Fix QueryUtils propagation for deeply nested constants.

pull/6827/head
Konstantin Haase 14 years ago
parent 393108e289
commit 9f8d770667
  1. 4
      lib/report/query_utils.rb

@ -17,8 +17,8 @@ module Report::QueryUtils
def propagate!(to = engine)
to.local_constants.each do |name|
const = to.const_get name
next unless Module === const and const < Report::QueryUtils
append_features const unless const <= self
next unless Module === const
append_features const unless const <= self or not const < Report::QueryUtils
propagate! const
end
end

Loading…
Cancel
Save