about summary refs log tree commit diff
path: root/app/services/concerns/stream_entry_renderer.rb
blob: a4255daead0fa80ff6f72d30d6db6d39f823ef1c (plain) (blame)
1
2
3
4
5
6
7
8
# frozen_string_literal: true

module StreamEntryRenderer
  def stream_entry_to_xml(stream_entry)
    renderer = StreamEntriesController.renderer.new(method: 'get', http_host: Rails.configuration.x.local_domain, https: Rails.configuration.x.use_https)
    renderer.render(:show, assigns: { stream_entry: stream_entry }, formats: [:atom])
  end
end