diff options
author | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-01-26 21:59:23 +0300 |
---|---|---|
committer | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-02-02 16:25:44 +0300 |
commit | 64c9768bd6916edfc1e43907ca5e976524b8d51b (patch) | |
tree | 850ea9b5a7ac5178555f817d27402647df5e4b0b /app/models/spam_log.rb | |
parent | d20e75a8d80c2828336cd22897ea6868d666f8a5 (diff) |
Use truncate helper on spam logs list
Diffstat (limited to 'app/models/spam_log.rb')
-rw-r--r-- | app/models/spam_log.rb | 8 |
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 |