Module: Thredded::ModerationHelper
- Includes:
- RenderHelper
- Defined in:
- app/helpers/thredded/moderation_helper.rb
Instance Method Summary collapse
Methods included from RenderHelper
#render_collection_to_strings_with_cache
Instance Method Details
#render_post_moderation_records(records) ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'app/helpers/thredded/moderation_helper.rb', line 8 def render_post_moderation_records(records) records_with_post_contents = render_collection_to_strings_with_cache( partial: 'thredded/moderation/post_moderation_record_content', collection: records, as: :post_moderation_record, expires_in: 1.week, locals: { options: { users_provider: ::Thredded::UsersProviderWithCache.new } } ) render partial: 'thredded/moderation/post_moderation_record', collection: records_with_post_contents, as: :record_and_post_content end |