Remove duplicate FavoriteGroup#strip_name method.

This method was defined twice.
This commit is contained in:
evazion
2017-07-14 18:39:48 -05:00
parent cbbf68bdd8
commit 695804fdda

View File

@@ -221,10 +221,6 @@ class FavoriteGroup < ApplicationRecord
(post_count / CurrentUser.user.per_page.to_f).ceil
end
def strip_name
self.name = name.to_s.strip
end
def contains?(post_id)
post_ids =~ /(?:\A| )#{post_id}(?:\Z| )/
end