Move graph module from lib or vendor directory to app directory.
Because not autoloading lib directory at development mode.
This commit is contained in:
parent
c9b1df1201
commit
d8a40d8c93
7 changed files with 317 additions and 323 deletions
|
@ -20,7 +20,7 @@ class GraphController < ProjectResourceController
|
|||
respond_to do |format|
|
||||
format.html
|
||||
format.json do
|
||||
graph = Gitlab::Graph::JsonBuilder.new(project, @ref, @commit)
|
||||
graph = Graph::JsonBuilder.new(project, @ref, @commit)
|
||||
render :json => graph.to_json
|
||||
end
|
||||
end
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
require Rails.root.join('lib', 'gitlab', 'graph', 'json_builder')
|
||||
|
||||
class ProjectsController < ProjectResourceController
|
||||
skip_before_filter :project, only: [:new, :create]
|
||||
skip_before_filter :repository, only: [:new, :create]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue