scinote-web/app/models/wopi_action.rb

8 lines
215 B
Ruby
Raw Normal View History

2019-05-09 23:10:02 +08:00
# frozen_string_literal: true
2017-06-23 21:19:08 +08:00
class WopiAction < ApplicationRecord
2019-05-09 23:10:02 +08:00
belongs_to :wopi_app, foreign_key: 'wopi_app_id', class_name: 'WopiApp'
validates :action, :extension, :urlsrc, :wopi_app, presence: true
end