Module: Presenters::CreationBehaviour
- Included in:
- PlatePresenter, TubePresenter
- Defined in:
- app/models/concerns/presenters/creation_behaviour.rb
Overview
Include in a presenter to add support for creating child purposes
Instance Method Summary collapse
Instance Method Details
#compatible_plate_purposes ⇒ Object
10 11 12 |
# File 'app/models/concerns/presenters/creation_behaviour.rb', line 10 def compatible_plate_purposes (purposes_of_type('plate')) end |
#compatible_tube_purposes ⇒ Object
14 15 16 |
# File 'app/models/concerns/presenters/creation_behaviour.rb', line 14 def compatible_tube_purposes (purposes_of_type('tube')) end |
#suggested_purposes ⇒ Object
6 7 8 |
# File 'app/models/concerns/presenters/creation_behaviour.rb', line 6 def suggested_purposes () end |