Module: Submission::Crossable

Included in:
FlexibleSubmission, ReRequestSubmission
Defined in:
app/models/submission/crossable.rb

Overview

rubocop:todo Style/Documentation

Instance Method Summary collapse

Instance Method Details

#cross_compatible?Boolean

Returns:

  • (Boolean)

11
12
13
# File 'app/models/submission/crossable.rb', line 11

def cross_compatible?
  true
end

#cross_project_allowedObject


7
8
9
# File 'app/models/submission/crossable.rb', line 7

def cross_project_allowed
  assets.any? { |a| a.projects.distinct.many? }
end

#cross_study_allowedObject


3
4
5
# File 'app/models/submission/crossable.rb', line 3

def cross_study_allowed
  assets.any? { |a| a.studies.distinct.many? }
end