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_purposesObject



10
11
12
# File 'app/models/concerns/presenters/creation_behaviour.rb', line 10

def compatible_plate_purposes
  construct_buttons(purposes_of_type('plate'))
end

#compatible_tube_purposesObject



14
15
16
# File 'app/models/concerns/presenters/creation_behaviour.rb', line 14

def compatible_tube_purposes
  construct_buttons(purposes_of_type('tube'))
end

#suggested_purposesObject



6
7
8
# File 'app/models/concerns/presenters/creation_behaviour.rb', line 6

def suggested_purposes
  construct_buttons(suggested_purpose_options)
end