Module: Submission::Crossable

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

Instance Method Summary collapse

Instance Method Details

#cross_compatible?Boolean

Returns:

  • (Boolean)

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

def cross_compatible?
  true
end

#cross_project_allowedObject


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

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

#cross_study_allowedObject


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

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