diff options
author | Yorick Peterse <yorickpeterse@gmail.com> | 2016-05-10 22:36:15 +0300 |
---|---|---|
committer | Yorick Peterse <yorickpeterse@gmail.com> | 2016-05-11 20:12:32 +0300 |
commit | db4a18b43b56c07113b2e0f0a2d678c15d6cb177 (patch) | |
tree | d86bef4e8950b109fa238b39cf36209626aecc2e | |
parent | 939b1279e37e944990c81168dda72151f6e29362 (diff) |
Removed cache option from attr_mentionable
The output is now always cached (as it should be) so the `cache: true`
option is no longer needed.
-rw-r--r-- | app/models/concerns/issuable.rb | 2 | ||||
-rw-r--r-- | app/models/note.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/app/models/concerns/issuable.rb b/app/models/concerns/issuable.rb index 2c3a8ee6c44..958081bc5ac 100644 --- a/app/models/concerns/issuable.rb +++ b/app/models/concerns/issuable.rb @@ -56,7 +56,7 @@ module Issuable prefix: true attr_mentionable :title, pipeline: :single_line - attr_mentionable :description, cache: true + attr_mentionable :description attr_mentionable :notes_with_associations participant :author, :assignee diff --git a/app/models/note.rb b/app/models/note.rb index f26aa1bf63f..18aa2e3b46b 100644 --- a/app/models/note.rb +++ b/app/models/note.rb @@ -7,7 +7,7 @@ class Note < ActiveRecord::Base default_value_for :system, false - attr_mentionable :note, cache: true, pipeline: :note + attr_mentionable :note, pipeline: :note participant :author belongs_to :project |