Sha256: ef014d3a2c2483dfa04f64a90ac8242ffaa9ecedd15e4e18422070c296709cfc

Contents?: true

Size: 535 Bytes

Versions: 6

Compression:

Stored size: 535 Bytes

Contents

# frozen_string_literal: true

module Weneedfeed
  module Controllers
    class ShowOpml < ::Weneedfeed::Controllers::Base
      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
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
weneedfeed-0.20.0 lib/weneedfeed/controllers/show_opml.rb
weneedfeed-0.19.3 lib/weneedfeed/controllers/show_opml.rb
weneedfeed-0.19.2 lib/weneedfeed/controllers/show_opml.rb
weneedfeed-0.19.1 lib/weneedfeed/controllers/show_opml.rb
weneedfeed-0.19.0 lib/weneedfeed/controllers/show_opml.rb
weneedfeed-0.18.0 lib/weneedfeed/controllers/show_opml.rb