Add move operation for documents plugin

This commit is contained in:
Patrick Gansterer 2020-03-06 14:30:27 +01:00
parent 3fb3fa409b
commit 3a4519757e
10 changed files with 41 additions and 0 deletions

View file

@ -1,5 +1,6 @@
class Document < ApplicationRecord
include ActsAsTree
extend ActsAsTree::TreeWalker
belongs_to :created_by, class_name: 'User', foreign_key: 'created_by_user_id'