lib/faceted/model.rb in faceted-1.3.3 vs lib/faceted/model.rb in faceted-1.4.0
- old
+ new
@@ -42,12 +42,12 @@
def fields
@fields ||= [:id, :excludes]
end
- def materialize(objects=[])
+ def materialize(objects=[], args={})
objects.compact.inject([]) do |a, object|
- interface = self.new
+ interface = self.new(args)
interface.send(:object=, object)
interface.send(:initialize_with_object)
a << interface
end
end