models: add deletable concern.

This commit is contained in:
evazion
2020-03-06 17:06:29 -06:00
parent 32bad825e1
commit 5bc0ab446b
13 changed files with 30 additions and 37 deletions

View File

@@ -20,8 +20,7 @@ class WikiPage < ApplicationRecord
has_many :dtext_links, as: :model, dependent: :destroy
api_attributes including: [:category_name]
scope :active, -> { where(is_deleted: false) }
deletable
module SearchMethods
def find_by_id_or_title(id)