Class: FileSr
- Inherits:
-
Sequel::Model
- Object
- Sequel::Model
- FileSr
- Defined in:
- model/files.rb
Class Method Summary collapse
-
.files_wo_cd(sr_id) ⇒ Object
Retrieve IFiles without a cd assigned to it.
Class Method Details
.files_wo_cd(sr_id) ⇒ Object
Retrieve IFiles without a cd assigned to it
47 48 49 |
# File 'model/files.rb', line 47 def self.files_wo_cd(sr_id) IFile.join(:file_srs, :file_id=>:id).left_join(:file_cds, :file_id=>:file_id).where(:systematic_review_id=>sr_id,:canonical_document_id=>nil).select_all(:files) end |