lib/dolly/collection.rb in dolly-3.1.2 vs lib/dolly/collection.rb in dolly-3.1.3

- old
+ new

@@ -1,5 +1,7 @@ +require 'delegate' + module Dolly class Collection < DelegateClass(Array) attr_reader :options def initialize(rows: [], options: {}) @@ -19,10 +21,10 @@ end private def collect_docs - lambda do |row| + proc do |row| next unless collectable_row?(row) klass = Object.const_get(doc_model(row)) klass.from_doc(row[:doc]) end end