wiki_page.rb: remove dead methods.

This commit is contained in:
evazion
2018-09-23 20:13:51 -05:00
parent 52704ef6cd
commit d188e5be33

View File

@@ -21,10 +21,6 @@ class WikiPage < ApplicationRecord
where("title = ?", title.mb_chars.downcase.tr(" ", "_"))
end
def title_in(titles)
where("title in (?)", titles.map{|x| x.mb_chars.downcase.tr(" ", "_")} )
end
def active
where("is_deleted = false")
end
@@ -112,10 +108,6 @@ class WikiPage < ApplicationRecord
extend SearchMethods
include ApiMethods
def self.find_title_and_id(title)
titled(title).select("title, id").first
end
def validate_not_locked
if is_locked? && !CurrentUser.is_builder?
errors.add(:is_locked, "and cannot be updated")