mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-06 15:05:26 +08:00
1b260785ec
Only works on scinote-preview
8 lines
No EOL
297 B
Ruby
8 lines
No EOL
297 B
Ruby
class WopiApp < ActiveRecord::Base
|
|
|
|
belongs_to :wopi_discovery, :foreign_key => 'wopi_discovery_id', :class_name => 'WopiDiscovery'
|
|
has_many :wopi_actions, class_name: 'WopiAction', foreign_key: 'wopi_app_id', :dependent => :destroy
|
|
|
|
validates :name, :icon, :wopi_discovery, presence: true
|
|
|
|
end |