You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

8 lines
348 B

  1. # frozen_string_literal: true
  2. module StreamEntryRenderer
  3. def stream_entry_to_xml(stream_entry)
  4. renderer = StreamEntriesController.renderer.new(method: 'get', http_host: Rails.configuration.x.local_domain, https: Rails.configuration.x.use_https)
  5. renderer.render(:show, assigns: { stream_entry: stream_entry }, formats: [:atom])
  6. end
  7. end