Class: Tasks::Nomenclature::BrowseController

Inherits:
ApplicationController
  • Object
show all
Includes:
TaskControllerConfiguration
Defined in:
app/controllers/tasks/nomenclature/browse_controller.rb

Instance Method Summary (collapse)

Methods included from TaskControllerConfiguration

#set_is_task_controller

Instance Method Details

- (Object) index



4
5
6
7
8
# File 'app/controllers/tasks/nomenclature/browse_controller.rb', line 4

def index 
  @taxon_name = TaxonName.where(project_id: sessions_current_project_id).find(params[:id]) if !params[:id].blank?
  @taxon_name ||= Project.find(sessions_current_project_id).root_taxon_name
  @data = NomenclatureCatalog.data_for(@taxon_name)
end