notebook/app/models/document.rb
2018-10-18 15:48:20 -05:00

25 lines
341 B
Ruby

class Document < ApplicationRecord
acts_as_paranoid
belongs_to :user
include Authority::Abilities
self.authorizer_name = 'DocumentAuthorizer'
def self.color
'black'
end
def self.icon
'description'
end
def name
title
end
def universe_field_value
#todo when documents belong to a universe
end
end