Class: QaServer::FetchController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/qa_server/fetch_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject

Sets up presenter with data to display in the UI



14
15
16
17
18
19
20
21
# File 'app/controllers/qa_server/fetch_controller.rb', line 14

def index
  flash[:error] = "Authority is required." if uri? && !authority_name?
  @presenter = presenter_class.new(authorities_list: authorities_list,
                                   authority: authority_name,
                                   uri: uri,
                                   format: format,
                                   term_results: term_results)
end