Sha256: 8d45986019cfd6a432b15e08018ffe7b9a0c6a4690bcd5eeac28885be95598ed

Contents?: true

Size: 525 Bytes

Versions: 6

Compression:

Stored size: 525 Bytes

Contents

# frozen_string_literal: true

module Weneedfeed
  module Controllers
    class ShowTopPage < ::Weneedfeed::Controllers::Base
      def call
        response.content_type = 'text/html'
        response.write(
          ::Weneedfeed::Views::ShowTopPage.new(
            partial_template_path: ::File.expand_path(
              'templates/show_top_page.html.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_top_page.rb
weneedfeed-0.19.3 lib/weneedfeed/controllers/show_top_page.rb
weneedfeed-0.19.2 lib/weneedfeed/controllers/show_top_page.rb
weneedfeed-0.19.1 lib/weneedfeed/controllers/show_top_page.rb
weneedfeed-0.19.0 lib/weneedfeed/controllers/show_top_page.rb
weneedfeed-0.18.0 lib/weneedfeed/controllers/show_top_page.rb