Class: Tasks::CachedMaps::ReportController

Inherits:
ApplicationController
  • Object
show all
Includes:
TaskControllerConfiguration
Defined in:
app/controllers/tasks/cached_maps/report_controller.rb

Instance Method Summary collapse

Methods included from TaskControllerConfiguration

#set_is_task_controller

Instance Method Details

#items_by_otuObject

GET



5
6
7
8
# File 'app/controllers/tasks/cached_maps/report_controller.rb', line 5

def items_by_otu
  @otus = ::Queries::Otu::Filter.new(params).all.limit(10).page(params[:page]).per(params[:per])
  @cached_map_items = CachedMapItem.where(otu: @otus).distinct.limit(500)
end