Class: Tasks::BiologicalAssociations::GraphController

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

Instance Method Summary collapse

Methods included from TaskControllerConfiguration

#set_is_task_controller

Instance Method Details

#dataObject



7
8
9
10
11
12
13
14
# File 'app/controllers/tasks/biological_associations/graph_controller.rb', line 7

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

  render json: helpers.objects_graph( @biological_associations  ).to_json

end

#indexObject



4
5
# File 'app/controllers/tasks/biological_associations/graph_controller.rb', line 4

def index
end