Class: Tasks::BiologicalAssociations::FamilySummaryController

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

Instance Method Summary collapse

Methods included from TaskControllerConfiguration

#set_is_task_controller

Instance Method Details

#indexObject



4
5
6
7
8
9
10
# File 'app/controllers/tasks/biological_associations/family_summary_controller.rb', line 4

def index
  @biological_associations_query = ::Queries::BiologicalAssociation::Filter.new(params)
  @biological_associations = @biological_associations_query.all.page(params[:page]).per(5000)

  @data = helpers.family_by_genus_summary(@biological_associations) 
  params[:per] = 5000
end