summaryrefslogtreecommitdiff
path: root/app/models/spam_log.rb
diff options
context:
space:
mode:
authorDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-01-26 16:59:23 -0200
committerDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-02-02 11:25:44 -0200
commit64c9768bd6916edfc1e43907ca5e976524b8d51b (patch)
tree850ea9b5a7ac5178555f817d27402647df5e4b0b /app/models/spam_log.rb
parentd20e75a8d80c2828336cd22897ea6868d666f8a5 (diff)
downloadgitlab-ce-64c9768bd6916edfc1e43907ca5e976524b8d51b.tar.gz
Use truncate helper on spam logs list
Diffstat (limited to 'app/models/spam_log.rb')
-rw-r--r--app/models/spam_log.rb8
1 files changed, 0 insertions, 8 deletions
diff --git a/app/models/spam_log.rb b/app/models/spam_log.rb
index 132c5713e0a..b7b32b478a7 100644
--- a/app/models/spam_log.rb
+++ b/app/models/spam_log.rb
@@ -2,12 +2,4 @@ class SpamLog < ActiveRecord::Base
belongs_to :user
validates :user, presence: true
-
- def truncated_description
- if description.present? && description.length > 100
- return description[0..100] + "..."
- end
-
- description
- end
end