module Draper::QueryMethods

def method_missing(method, *args, &block)

Proxies missing query methods to the source class if the strategy allows.
def method_missing(method, *args, &block)
unless strategy.allowed? method
ethod, *args, &block).decorate(with: decorator_class, context: context)

def respond_to_missing?(method, include_private = false)

def respond_to_missing?(method, include_private = false)
  object.respond_to?(method) && strategy.allowed?(method) || super
end

def strategy

Configures the strategy used to proxy the query methods, which defaults to `:active_record`.
def strategy
  @strategy ||= LoadStrategy.new(Draper.default_query_methods_strategy)
end