Class: Tasks::CachedMaps::ReportController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- Tasks::CachedMaps::ReportController
- Includes:
- TaskControllerConfiguration
- Defined in:
- app/controllers/tasks/cached_maps/report_controller.rb
Instance Method Summary collapse
Methods included from TaskControllerConfiguration
Instance Method Details
#items_by_otu ⇒ Object
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 |