Remove duplicate FavoriteGroup#strip_name method.
This method was defined twice.
This commit is contained in:
@@ -221,10 +221,6 @@ class FavoriteGroup < ApplicationRecord
|
|||||||
(post_count / CurrentUser.user.per_page.to_f).ceil
|
(post_count / CurrentUser.user.per_page.to_f).ceil
|
||||||
end
|
end
|
||||||
|
|
||||||
def strip_name
|
|
||||||
self.name = name.to_s.strip
|
|
||||||
end
|
|
||||||
|
|
||||||
def contains?(post_id)
|
def contains?(post_id)
|
||||||
post_ids =~ /(?:\A| )#{post_id}(?:\Z| )/
|
post_ids =~ /(?:\A| )#{post_id}(?:\Z| )/
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user