Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit 6a89bfa21676d0ba0687f914648e7b46fcb83d48 1 parent 9d58bf6
Jay Wengrow jaywengrow authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/faceted/model.rb
4 lib/faceted/model.rb
View
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.