Class: Weneedfeed::Controllers::ShowOpml

Inherits:
Base
  • Object
show all
Defined in:
lib/weneedfeed/controllers/show_opml.rb

Instance Method Summary collapse

Instance Method Details

#callObject



6
7
8
9
10
11
12
13
14
15
16
17
18
# File 'lib/weneedfeed/controllers/show_opml.rb', line 6

def call
  response.content_type = 'application/xml; charset=utf-8'
  response.write(
    ::Weneedfeed::Views::ShowOpml.new(
      partial_template_path: ::File.expand_path(
        'templates/show_opml.xml.erb',
        "#{__dir__}/../../.."
      ),
      request: request,
      schema: schema
    ).to_s
  )
end