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
a4a4e260
Commit
a4a4e260
authored
Feb 05, 2016
by
Valery Sizov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ES: fixed bug in snippet indexing
parent
69980498
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
app/models/personal_snippet.rb
app/models/personal_snippet.rb
+3
-0
app/models/project_snippet.rb
app/models/project_snippet.rb
+4
-0
No files found.
app/models/personal_snippet.rb
View file @
a4a4e260
...
@@ -16,4 +16,7 @@
...
@@ -16,4 +16,7 @@
#
#
class
PersonalSnippet
<
Snippet
class
PersonalSnippet
<
Snippet
# Elastic search configuration (it does not support STI)
document_type
'snippet'
index_name
[
Rails
.
application
.
class
.
parent_name
.
downcase
,
'snippet'
,
Rails
.
env
].
join
(
'-'
)
end
end
app/models/project_snippet.rb
View file @
a4a4e260
...
@@ -16,6 +16,10 @@
...
@@ -16,6 +16,10 @@
#
#
class
ProjectSnippet
<
Snippet
class
ProjectSnippet
<
Snippet
# Elastic search configuration (it does not support STI)
document_type
'snippet'
index_name
[
Rails
.
application
.
class
.
parent_name
.
downcase
,
'snippet'
,
Rails
.
env
].
join
(
'-'
)
belongs_to
:project
belongs_to
:project
belongs_to
:author
,
class_name:
"User"
belongs_to
:author
,
class_name:
"User"
...
...
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