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
b51992ee
Commit
b51992ee
authored
Mar 03, 2020
by
Vijay Hawoldar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unused Snippets#content_types method
parent
328d1b1e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
8 deletions
+5
-8
app/models/snippet.rb
app/models/snippet.rb
+0
-8
changelogs/unreleased/vh-snippets-content-types.yml
changelogs/unreleased/vh-snippets-content-types.yml
+5
-0
No files found.
app/models/snippet.rb
View file @
b51992ee
...
...
@@ -188,14 +188,6 @@ class Snippet < ApplicationRecord
end
end
def
self
.
content_types
[
".rb"
,
".py"
,
".pl"
,
".scala"
,
".c"
,
".cpp"
,
".java"
,
".haml"
,
".html"
,
".sass"
,
".scss"
,
".xml"
,
".php"
,
".erb"
,
".js"
,
".sh"
,
".coffee"
,
".yml"
,
".md"
]
end
def
blob
@blob
||=
Blob
.
decorate
(
SnippetBlob
.
new
(
self
),
self
)
end
...
...
changelogs/unreleased/vh-snippets-content-types.yml
0 → 100644
View file @
b51992ee
---
title
:
Remove unused Snippets#content_types method
merge_request
:
26306
author
:
type
:
other
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