Class: PickListsController

Inherits:
ApplicationController show all
Defined in:
app/controllers/pick_lists_controller.rb

Overview

PickLists are a wrapper around Submission and Batch for the CherrypickPipeline. The controller provides an index for quick overview, and show pages to provide a shareable link if the submission is built asynchronously.

Constant Summary

Constants included from FlashTruncation

FlashTruncation::STRING_OVERHEAD

Instance Method Summary collapse

Methods inherited from ApplicationController

#block_api_access, #evil_parameter_hack!, #extract_header_info, #set_cache_disabled!

Methods included from FlashTruncation

#max_flash_size, #truncate_flash, #truncate_flash_array

Instance Method Details

#indexObject

Paginated list of all PickLists



9
10
11
# File 'app/controllers/pick_lists_controller.rb', line 9

def index
  @pick_lists = PickList.order(id: :desc).page(params[:page])
end

#showObject



13
14
15
# File 'app/controllers/pick_lists_controller.rb', line 13

def show
  @pick_list = PickList.find(params[:id])
end