module Draper::QueryMethods
def method_missing(method, *args, &block)
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
def strategy @strategy ||= LoadStrategy.new(Draper.default_query_methods_strategy) end