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
6b87eaac
Commit
6b87eaac
authored
Feb 05, 2016
by
Valery Sizov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ES: fixes for snippets
parent
a4a4e260
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
0 deletions
+2
-0
app/models/personal_snippet.rb
app/models/personal_snippet.rb
+1
-0
app/models/project_snippet.rb
app/models/project_snippet.rb
+1
-0
No files found.
app/models/personal_snippet.rb
View file @
6b87eaac
...
@@ -19,4 +19,5 @@ class PersonalSnippet < Snippet
...
@@ -19,4 +19,5 @@ class PersonalSnippet < Snippet
# Elastic search configuration (it does not support STI)
# Elastic search configuration (it does not support STI)
document_type
'snippet'
document_type
'snippet'
index_name
[
Rails
.
application
.
class
.
parent_name
.
downcase
,
'snippet'
,
Rails
.
env
].
join
(
'-'
)
index_name
[
Rails
.
application
.
class
.
parent_name
.
downcase
,
'snippet'
,
Rails
.
env
].
join
(
'-'
)
include
Elastic
::
SnippetsSearch
end
end
app/models/project_snippet.rb
View file @
6b87eaac
...
@@ -19,6 +19,7 @@ class ProjectSnippet < Snippet
...
@@ -19,6 +19,7 @@ class ProjectSnippet < Snippet
# Elastic search configuration (it does not support STI)
# Elastic search configuration (it does not support STI)
document_type
'snippet'
document_type
'snippet'
index_name
[
Rails
.
application
.
class
.
parent_name
.
downcase
,
'snippet'
,
Rails
.
env
].
join
(
'-'
)
index_name
[
Rails
.
application
.
class
.
parent_name
.
downcase
,
'snippet'
,
Rails
.
env
].
join
(
'-'
)
include
Elastic
::
SnippetsSearch
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