Browse files

give the ability to pass args hash to materialize which allows for th…

…e option of having presenters not present id
  • Loading branch information...
1 parent 9d58bf6 commit 6a89bfa21676d0ba0687f914648e7b46fcb83d48 @jaywengrow jaywengrow committed Sep 12, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/faceted/model.rb
View
4 lib/faceted/model.rb
@@ -44,9 +44,9 @@ 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

0 comments on commit 6a89bfa

Please sign in to comment.