BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
1a277c50
Commit
1a277c50
authored
May 14, 2015
by
Robert Speicher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor documentation updates
parent
b88da58c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
mentionable.rb
app/models/concerns/mentionable.rb
+1
-1
referable.rb
app/models/concerns/referable.rb
+1
-1
No files found.
app/models/concerns/mentionable.rb
View file @
1a277c50
...
...
@@ -25,7 +25,7 @@ module Mentionable
# By default this will be the class name and the result of calling
# `to_reference` on the object.
def
gfm_reference
#
Convert "MergeRequest" to
"merge request"
#
"MergeRequest" > "merge_request" > "Merge request" >
"merge request"
friendly_name
=
self
.
class
.
to_s
.
underscore
.
humanize
.
downcase
"
#{
friendly_name
}
#{
to_reference
}
"
...
...
app/models/concerns/referable.rb
View file @
1a277c50
...
...
@@ -40,7 +40,7 @@ module Referable
#
# This must be overridden by the including class.
#
# Returns Regexp
# Returns
a
Regexp
def
reference_pattern
raise
NotImplementedError
,
%Q{
#{
self
}
does not implement "reference_pattern"}
...
...
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