|
|
|
@ -4,6 +4,17 @@ module Report::QueryUtils |
|
|
|
|
delegate :quoted_false, :quoted_true, :to => "ActiveRecord::Base.connection" |
|
|
|
|
attr_writer :engine |
|
|
|
|
|
|
|
|
|
module PropagationHook |
|
|
|
|
def append_features(base) |
|
|
|
|
ancestors[1..-1].reverse_each { |m| base.send(:include, m) } |
|
|
|
|
base.extend PropagationHook |
|
|
|
|
base.extend self |
|
|
|
|
super |
|
|
|
|
end |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
extend PropagationHook |
|
|
|
|
|
|
|
|
|
## |
|
|
|
|
# Subclass of Report to be used for constant lookup and such. |
|
|
|
|
# It is considered public API to override this method i.e. in Tests. |
|
|
|
|