Class: Weneedfeed::Controllers::ShowTopPage

Inherits:
Base
  • Object
show all
Defined in:
lib/weneedfeed/controllers/show_top_page.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_top_page.rb', line 6

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