summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2015-10-22 15:40:02 +0200
committerDouwe Maan <douwe@gitlab.com>2015-10-22 15:40:02 +0200
commitc746a1de4ef75034c75d20e763ccfa1f73750722 (patch)
tree4ba0036603e77d0709636d5456170e7b85348a93
parentc1ecfb5de960a675888640a05c75c07217c2d293 (diff)
downloadgitlab-ce-c746a1de4ef75034c75d20e763ccfa1f73750722.tar.gz
Use faster, more appropriate pipeline for mentionable attributes
-rw-r--r--app/models/commit.rb2
-rw-r--r--app/models/concerns/issuable.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/app/models/commit.rb b/app/models/commit.rb
index 492f6be1ce3..a5f70b3a351 100644
--- a/app/models/commit.rb
+++ b/app/models/commit.rb
@@ -7,7 +7,7 @@ class Commit
include Referable
include StaticModel
- attr_mentionable :safe_message
+ attr_mentionable :safe_message, pipeline: :single_line
participant :author, :committer, :notes
attr_accessor :project
diff --git a/app/models/concerns/issuable.rb b/app/models/concerns/issuable.rb
index 54bfd4eced5..1d7cecef97b 100644
--- a/app/models/concerns/issuable.rb
+++ b/app/models/concerns/issuable.rb
@@ -46,7 +46,7 @@ module Issuable
allow_nil: true,
prefix: true
- attr_mentionable :title
+ attr_mentionable :title, pipeline: :single_line
attr_mentionable :description, cache: true
participant :author, :assignee, :notes_with_associations
end