Module: Materializer::CoreExt::Array::InstanceMethods

Defined in:
lib/materializer/core_ext.rb

Instance Method Summary collapse

Instance Method Details

#from_materialized(options) ⇒ Object

Return content from a materialized profile.



12
13
14
15
16
17
18
19
20
21
22
23
# File 'lib/materializer/core_ext.rb', line 12

def from_materialized(options)
  map do |o|

    # Unfortunately, need to unescape to properly combine it.
    #
    # This is still extremely faster, by an order of 5% or
    # percent faster.
    #
    ActiveSupport::JSON.decode(o.from_materialized(options))

  end
end