Remove duplicate WikiPageVersion#visible? method.
Already defined by `delegate :visible?, :to => :wiki_page`.
This commit is contained in:
@@ -40,10 +40,6 @@ class WikiPageVersion < ApplicationRecord
|
|||||||
Tag.category_for(title)
|
Tag.category_for(title)
|
||||||
end
|
end
|
||||||
|
|
||||||
def visible?
|
|
||||||
artist.blank? || !artist.is_banned? || CurrentUser.is_builder?
|
|
||||||
end
|
|
||||||
|
|
||||||
def other_names_array
|
def other_names_array
|
||||||
other_names.to_s.scan(/\S+/)
|
other_names.to_s.scan(/\S+/)
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user