Class: PipelinesController

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

Overview

Provides an overview of the pipelines auto-generated from the configuration Tailored to the needs of the pipeline graph

Instance Method Summary collapse

Instance Method Details

#indexObject



7
8
9
10
11
12
13
14
15
# File 'app/controllers/pipelines_controller.rb', line 7

def index
  respond_to do |format|
    # If we're html, just render the template, we'll populate it by ajax
    format.html { render :index }
    format.json do
      render json: { elements: { nodes: calculate_nodes, edges: calculate_edges }, pipelines: calculate_pipelines }
    end
  end
end