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
8 lines
348 B
# 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
|
|
|