Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
411387eb
Commit
411387eb
authored
Oct 18, 2017
by
Rémy Coutable
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add concerns folders to EE-specific eager-load paths
Signed-off-by:
Rémy Coutable
<
remy@rymai.me
>
parent
43cd96e9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
14 deletions
+6
-14
config/application.rb
config/application.rb
+6
-14
No files found.
config/application.rb
View file @
411387eb
...
...
@@ -37,21 +37,13 @@ module Gitlab
config
.
generators
.
templates
.
push
(
"
#{
config
.
root
}
/generator_templates"
)
# EE specific paths.
config
.
eager_load_paths
.
push
(
*
%W[
#{
config
.
root
}
/ee/lib
#{
config
.
root
}
/ee/app/controllers
#{
config
.
root
}
/ee/app/helpers
#{
config
.
root
}
/ee/app/mailers
#{
config
.
root
}
/ee/app/models
#{
config
.
root
}
/ee/app/models/concerns
#{
config
.
root
}
/ee/app/policies
#{
config
.
root
}
/ee/app/serializers
#{
config
.
root
}
/ee/app/presenters
#{
config
.
root
}
/ee/app/services
#{
config
.
root
}
/ee/app/workers
]
)
ee_paths
=
config
.
eager_load_paths
.
each_with_object
([])
do
|
path
,
memo
|
ee_path
=
config
.
root
.
join
(
'ee'
,
Pathname
.
new
(
path
).
relative_path_from
(
config
.
root
))
memo
<<
ee_path
.
to_s
if
ee_path
.
exist?
end
config
.
eager_load_paths
.
concat
(
ee_paths
)
config
.
paths
[
'app/views'
].
push
(
*
%W[
config
.
paths
[
'app/views'
].
concat
(
%W[
#{
config
.
root
}
/ee/app/views
]
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment