7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
# File 'lib/subj_models/document_file.rb', line 7
def self.included(including_class)
including_class.class_eval do
include SubjModels::ComprisingExternalId
has_one :nomenclature_photo
has_one :nomenclature_file
has_one :brand_line
has_one :user
has_one :manager
has_one :user_specialization_approval
has_many :videos
has_many :brands
mount_uploader :file_data, PhotoUploader
mount_uploader :alternative_file_data, PhotoUploader
validates :file_data, presence: true
end
end
|