Use faster, more appropriate pipeline for mentionable attributes

This commit is contained in:
Douwe Maan 2015-10-22 15:40:02 +02:00
parent c1ecfb5de9
commit c746a1de4e
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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