mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-10 17:36:33 +08:00
16 lines
397 B
Ruby
16 lines
397 B
Ruby
# frozen_string_literal: true
|
|
|
|
class WopiDiscovery < ApplicationRecord
|
|
require 'base64'
|
|
|
|
has_many :wopi_apps,
|
|
class_name: 'WopiApp',
|
|
foreign_key: 'wopi_discovery_id',
|
|
dependent: :destroy
|
|
validates :expires,
|
|
:proof_key_mod,
|
|
:proof_key_exp,
|
|
:proof_key_old_mod,
|
|
:proof_key_old_exp,
|
|
presence: true
|
|
end
|