5a4ebfb47a
Signed-off-by: Jeroen van Baarsen <jeroenvanbaarsen@gmail.com>
18 lines
428 B
Ruby
18 lines
428 B
Ruby
class Projects::NetworkController < Projects::ApplicationController
|
|
include ExtractsPath
|
|
include ApplicationHelper
|
|
|
|
before_action :require_non_empty_project
|
|
before_action :assign_ref_vars
|
|
before_action :authorize_download_code!
|
|
|
|
def show
|
|
respond_to do |format|
|
|
format.html
|
|
|
|
format.json do
|
|
@graph = Network::Graph.new(project, @ref, @commit, @options[:filter_ref])
|
|
end
|
|
end
|
|
end
|
|
end
|