def default_class
        if collection.respond_to?(:proxy_reflection)
          collection.proxy_reflection.klass
        elsif !collection.empty?
          collection.first.class
        end
      end
def default_class
        if collection.respond_to?(:proxy_reflection)
          collection.proxy_reflection.klass
        elsif !collection.empty?
          collection.first.class
        end
      end
Finds the class representing the objects within the collection