Class: Tasks::AnatomicalParts::SelectOntologiesController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- Tasks::AnatomicalParts::SelectOntologiesController
- Includes:
- TaskControllerConfiguration
- Defined in:
- app/controllers/tasks/anatomical_parts/select_ontologies_controller.rb
Instance Method Summary collapse
- #index ⇒ Object
- #ontology_preferences ⇒ Object
- #save_ontologies_to_project ⇒ Object
- #set_project ⇒ Object private
Methods included from TaskControllerConfiguration
Instance Method Details
#index ⇒ Object
7 8 9 |
# File 'app/controllers/tasks/anatomical_parts/select_ontologies_controller.rb', line 7 def index # vue app end |
#ontology_preferences ⇒ Object
17 18 19 |
# File 'app/controllers/tasks/anatomical_parts/select_ontologies_controller.rb', line 17 def ontology_preferences render json: @project.anatomical_parts_ontology_preferences end |
#save_ontologies_to_project ⇒ Object
11 12 13 14 15 |
# File 'app/controllers/tasks/anatomical_parts/select_ontologies_controller.rb', line 11 def save_ontologies_to_project @project.set_anatomical_parts_ontologies(params[:ontologies]) head :no_content end |
#set_project ⇒ Object (private)
23 24 25 26 |
# File 'app/controllers/tasks/anatomical_parts/select_ontologies_controller.rb', line 23 def set_project @project = Project.find(sessions_current_project_id) @recent_object = @project end |