Module: Thredded::RenderHelper

Included in:
ApplicationHelper, ModerationHelper
Defined in:
app/helpers/thredded/render_helper.rb

Instance Method Summary collapse

Instance Method Details

#render_collection_to_strings_with_cache(collection:, partial:, expires_in:, **opts) ⇒ Object

Parameters:

  • collection (Array<T>)
  • partial (String)
  • expires_in (ActiveSupport::Duration)

9
10
11
12
13
# File 'app/helpers/thredded/render_helper.rb', line 9

def render_collection_to_strings_with_cache(collection:, partial:, expires_in:, **opts)
  Thredded::CollectionToStringsWithCacheRenderer.new(lookup_context).render_collection_to_strings_with_cache(
    self, collection: collection, partial: partial, expires_in: expires_in, **opts
  )
end