Module: Submission::Crossable
- Included in:
- FlexibleSubmission, ReRequestSubmission
- Defined in:
- app/models/submission/crossable.rb
Instance Method Summary collapse
Instance Method Details
#cross_compatible? ⇒ Boolean
11 12 13 |
# File 'app/models/submission/crossable.rb', line 11 def cross_compatible? true end |
#cross_project_allowed ⇒ Object
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_allowed ⇒ Object
3 4 5 |
# File 'app/models/submission/crossable.rb', line 3 def cross_study_allowed assets.any? { |a| a.studies.distinct.many? } end |