Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatricio Cano <suprnova32@gmail.com>2016-07-22 02:11:53 +0300
committerPatricio Cano <suprnova32@gmail.com>2016-07-27 03:29:16 +0300
commitf01fce7f4683e06e83d3f91d38ca5b749e27e7ec (patch)
tree4e43e365de7cc27cc7c22458fa0a8d079e35add6 /app/models/issue.rb
parent8f04cf0eadbcde7fc5d1c970741e30ca8b97967d (diff)
Refactor spam validation to a concern that can be easily reused and improve legibility in `SpamCheckService`
Diffstat (limited to 'app/models/issue.rb')
-rw-r--r--app/models/issue.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/issue.rb b/app/models/issue.rb
index 60af8c15340..d9428ebc9fb 100644
--- a/app/models/issue.rb
+++ b/app/models/issue.rb
@@ -6,6 +6,7 @@ class Issue < ActiveRecord::Base
include Referable
include Sortable
include Taskable
+ include Spammable
DueDateStruct = Struct.new(:title, :name).freeze
NoDueDate = DueDateStruct.new('No Due Date', '0').freeze