Remove duplicate WikiPageVersion#visible? method.

Already defined by `delegate :visible?, :to => :wiki_page`.
This commit is contained in:
evazion
2017-07-14 18:43:52 -05:00
parent 695804fdda
commit 099ae86cc6

View File

@@ -40,10 +40,6 @@ class WikiPageVersion < ApplicationRecord
Tag.category_for(title)
end
def visible?
artist.blank? || !artist.is_banned? || CurrentUser.is_builder?
end
def other_names_array
other_names.to_s.scan(/\S+/)
end