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
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
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
app/models/concerns/mentionable.rb
app/models/concerns/mentionable.rb
+1
-1
app/models/concerns/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
...
@@ -25,7 +25,7 @@ module Mentionable
# By default this will be the class name and the result of calling
# By default this will be the class name and the result of calling
# `to_reference` on the object.
# `to_reference` on the object.
def
gfm_reference
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
=
self
.
class
.
to_s
.
underscore
.
humanize
.
downcase
"
#{
friendly_name
}
#{
to_reference
}
"
"
#{
friendly_name
}
#{
to_reference
}
"
...
...
app/models/concerns/referable.rb
View file @
1a277c50
...
@@ -40,7 +40,7 @@ module Referable
...
@@ -40,7 +40,7 @@ module Referable
#
#
# This must be overridden by the including class.
# This must be overridden by the including class.
#
#
# Returns Regexp
# Returns
a
Regexp
def
reference_pattern
def
reference_pattern
raise
NotImplementedError
,
raise
NotImplementedError
,
%Q{
#{
self
}
does not implement "reference_pattern"}
%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