class ActiveFedora::Associations::Builder::CollectionAssociation
def self.wrap_scope(scope, mod)
def self.wrap_scope(scope, mod) if scope if scope.arity.positive? proc { |owner| instance_exec(owner, &scope).extending(mod) } else proc { instance_exec(&scope).extending(mod) } end else proc { extending(mod) } end end